mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-29 15:16:05 +00:00
Fixed: CMake definitions in PCH
--HG-- branch : develop
This commit is contained in:
parent
6162352d8b
commit
5ee53205b9
1 changed files with 7 additions and 10 deletions
|
@ -28,8 +28,6 @@ ELSE()
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
MACRO(APPEND_DEFINITION _NAME _VAL)
|
MACRO(APPEND_DEFINITION _NAME _VAL)
|
||||||
# value is not empty
|
|
||||||
IF(${_VAL})
|
|
||||||
IF(CMAKE_VERSION VERSION_LESS "2.8.12")
|
IF(CMAKE_VERSION VERSION_LESS "2.8.12")
|
||||||
# don't support logical expressions, append definition
|
# don't support logical expressions, append definition
|
||||||
LIST(APPEND ${_NAME} "-D${_VAL}")
|
LIST(APPEND ${_NAME} "-D${_VAL}")
|
||||||
|
@ -37,7 +35,6 @@ MACRO(APPEND_DEFINITION _NAME _VAL)
|
||||||
# support logical expressions, use them
|
# support logical expressions, use them
|
||||||
LIST(APPEND ${_NAME} "$<$<BOOL:${_VAL}>:-D$<JOIN:${_VAL},-D>>")
|
LIST(APPEND ${_NAME} "$<$<BOOL:${_VAL}>:-D$<JOIN:${_VAL},-D>>")
|
||||||
ENDIF()
|
ENDIF()
|
||||||
ENDIF()
|
|
||||||
ENDMACRO()
|
ENDMACRO()
|
||||||
|
|
||||||
# Set PCH_FLAGS for common flags, PCH_ARCH_XXX_FLAGS for specific archs flags and PCH_ARCHS for archs
|
# Set PCH_FLAGS for common flags, PCH_ARCH_XXX_FLAGS for specific archs flags and PCH_ARCHS for archs
|
||||||
|
|
Loading…
Reference in a new issue