mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-10 01:09:50 +00:00
Fixed: PCH with old CMake versions (definitions already include -D)
--HG-- branch : develop
This commit is contained in:
parent
c4b9d77eaa
commit
1aa738ba78
1 changed files with 4 additions and 2 deletions
|
@ -179,16 +179,18 @@ MACRO(PCH_SET_COMPILE_FLAGS _target)
|
||||||
GET_DIRECTORY_PROPERTY(_DIRECTORY_FLAGS DEFINITIONS)
|
GET_DIRECTORY_PROPERTY(_DIRECTORY_FLAGS DEFINITIONS)
|
||||||
|
|
||||||
IF(_DIRECTORY_FLAGS)
|
IF(_DIRECTORY_FLAGS)
|
||||||
|
SEPARATE_ARGUMENTS(_DIRECTORY_FLAGS)
|
||||||
FOREACH(item ${_DIRECTORY_FLAGS})
|
FOREACH(item ${_DIRECTORY_FLAGS})
|
||||||
LIST(APPEND _FLAGS "$<$<BOOL:${item}>:-D$<JOIN:${item},-D>>")
|
LIST(APPEND _FLAGS "${item}")
|
||||||
ENDFOREACH()
|
ENDFOREACH()
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
GET_DIRECTORY_PROPERTY(_DIRECTORY_DEFINITIONS DIRECTORY ${CMAKE_SOURCE_DIR} DEFINITIONS)
|
GET_DIRECTORY_PROPERTY(_DIRECTORY_DEFINITIONS DIRECTORY ${CMAKE_SOURCE_DIR} DEFINITIONS)
|
||||||
|
|
||||||
IF(_DIRECTORY_DEFINITIONS)
|
IF(_DIRECTORY_DEFINITIONS)
|
||||||
|
SEPARATE_ARGUMENTS(_DIRECTORY_DEFINITIONS)
|
||||||
FOREACH(item ${_DIRECTORY_DEFINITIONS})
|
FOREACH(item ${_DIRECTORY_DEFINITIONS})
|
||||||
LIST(APPEND _FLAGS "$<$<BOOL:${item}>:-D$<JOIN:${item},-D>>")
|
LIST(APPEND _FLAGS "${item}")
|
||||||
ENDFOREACH()
|
ENDFOREACH()
|
||||||
ENDIF()
|
ENDIF()
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
Loading…
Reference in a new issue