Merge topic 'update-Qt4-COMPILE_DEFINITIONS'
2509c767
Qt4: Use generator expression in COMPILE_DEFINITIONS (#14692)
This commit is contained in:
commit
6389da7905
|
@ -22,13 +22,7 @@
|
|||
# License text for the above reference.)
|
||||
|
||||
add_definitions(${QT_DEFINITIONS})
|
||||
set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS_DEBUG QT_DEBUG)
|
||||
set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS_RELEASE QT_NO_DEBUG)
|
||||
set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS_RELWITHDEBINFO QT_NO_DEBUG)
|
||||
set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS_MINSIZEREL QT_NO_DEBUG)
|
||||
if(NOT CMAKE_CONFIGURATION_TYPES AND NOT CMAKE_BUILD_TYPE)
|
||||
set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS QT_NO_DEBUG)
|
||||
endif()
|
||||
set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS $<$<NOT:$<CONFIG:Debug>>:QT_NO_DEBUG>)
|
||||
|
||||
if(QT_INCLUDE_DIRS_NO_SYSTEM)
|
||||
include_directories(${QT_INCLUDE_DIR})
|
||||
|
|
Loading…
Reference in New Issue