[cmake-commits] clinton committed UseQt4.cmake 1.12 1.13
cmake-commits at cmake.org
cmake-commits at cmake.org
Fri Feb 1 12:02:21 EST 2008
Update of /cvsroot/CMake/CMake/Modules
In directory public:/mounts/ram/cvs-serv27324
Modified Files:
UseQt4.cmake
Log Message:
ENH: Use new COMPILE_DEFINITIONS_* with set_property to
add Qt release/debug defines.
Index: UseQt4.cmake
===================================================================
RCS file: /cvsroot/CMake/CMake/Modules/UseQt4.cmake,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- UseQt4.cmake 1 Dec 2007 00:11:18 -0000 1.12
+++ UseQt4.cmake 1 Feb 2008 17:02:19 -0000 1.13
@@ -5,17 +5,10 @@
ADD_DEFINITIONS(${QT_DEFINITIONS})
-
-# check that QT_NO_DEBUG is defined for release configurations
-MACRO(QT_CHECK_FLAG_EXISTS FLAG VAR DOC)
- IF(NOT ${VAR} MATCHES "${FLAG}")
- SET(${VAR} "${${VAR}} ${FLAG}"
- CACHE STRING "Flags used by the compiler during ${DOC} builds." FORCE)
- ENDIF(NOT ${VAR} MATCHES "${FLAG}")
-ENDMACRO(QT_CHECK_FLAG_EXISTS FLAG VAR)
-QT_CHECK_FLAG_EXISTS(-DQT_NO_DEBUG CMAKE_CXX_FLAGS_RELWITHDEBINFO "Release with Debug Info")
-QT_CHECK_FLAG_EXISTS(-DQT_NO_DEBUG CMAKE_CXX_FLAGS_RELEASE "release")
-QT_CHECK_FLAG_EXISTS(-DQT_NO_DEBUG CMAKE_CXX_FLAGS_MINSIZEREL "release minsize")
+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)
INCLUDE_DIRECTORIES(${QT_INCLUDE_DIR})
More information about the Cmake-commits
mailing list