mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-27 01:26:30 +00:00
Fixed: CMake compilation checks with STLport
This commit is contained in:
parent
0716d6fdba
commit
b6a6b540ed
1 changed files with 4 additions and 5 deletions
|
@ -48,6 +48,10 @@ MACRO(NL_DEFAULT_PROPS name label)
|
|||
SET_TARGET_PROPERTIES(${name} PROPERTIES
|
||||
PROJECT_LABEL ${label})
|
||||
ENDIF(${type} STREQUAL SHARED_LIBRARY)
|
||||
IF(WITH_STLPORT)
|
||||
SET_TARGET_PROPERTIES(${name} PROPERTIES COMPILE_FLAGS "/X")
|
||||
ENDIF(WITH_STLPORT)
|
||||
|
||||
ENDMACRO(NL_DEFAULT_PROPS)
|
||||
|
||||
###
|
||||
|
@ -291,11 +295,6 @@ MACRO(NL_SETUP_BUILD)
|
|||
|
||||
SET(PLATFORM_CFLAGS "/D_CRT_SECURE_NO_WARNINGS /DWIN32 /D_WINDOWS /W3 /Zi /Zm1000")
|
||||
|
||||
IF(WITH_STLPORT)
|
||||
# deactivate all global include paths
|
||||
SET(PLATFORM_CFLAGS "${PLATFORM_CFLAGS} /X")
|
||||
ENDIF(WITH_STLPORT)
|
||||
|
||||
# Exceptions are only set for C++
|
||||
SET(PLATFORM_CXXFLAGS "${PLATFORM_CFLAGS} /EHa")
|
||||
|
||||
|
|
Loading…
Reference in a new issue