summaryrefslogtreecommitdiffstats
path: root/Modules/UsewxWidgets.cmake
diff options
context:
space:
mode:
authorMiguel A. Figueroa-Villanueva <miguelf@ieee.org>2009-02-24 21:49:15 (GMT)
committerMiguel A. Figueroa-Villanueva <miguelf@ieee.org>2009-02-24 21:49:15 (GMT)
commitcf55e01adadfa569715fac21373c7fda089b3fe8 (patch)
treee5dea908df163e37940509f2a440fd1fde44411b /Modules/UsewxWidgets.cmake
parentb5db18e72322862883e6d0695e3e0cc5826f39c9 (diff)
downloadCMake-cf55e01adadfa569715fac21373c7fda089b3fe8.zip
CMake-cf55e01adadfa569715fac21373c7fda089b3fe8.tar.gz
CMake-cf55e01adadfa569715fac21373c7fda089b3fe8.tar.bz2
BUG: Using PROPERTY COMPILE_DEFINITIONS_DEBUG to support Debug only preprocessor options (e.g., _DEBUG __WXDEBUG__).
Diffstat (limited to 'Modules/UsewxWidgets.cmake')
-rw-r--r--Modules/UsewxWidgets.cmake9
1 files changed, 8 insertions, 1 deletions
diff --git a/Modules/UsewxWidgets.cmake b/Modules/UsewxWidgets.cmake
index 6f5cb26..df373bf 100644
--- a/Modules/UsewxWidgets.cmake
+++ b/Modules/UsewxWidgets.cmake
@@ -46,10 +46,17 @@ IF (wxWidgets_FOUND)
ENDIF(wxWidgets_LIBRARY_DIRS)
IF (wxWidgets_DEFINITIONS)
- ADD_DEFINITIONS( ${wxWidgets_DEFINITIONS} )
+ SET_PROPERTY(DIRECTORY APPEND
+ PROPERTY COMPILE_DEFINITIONS ${wxWidgets_DEFINITIONS})
MSG("wxWidgets_DEFINITIONS=${wxWidgets_DEFINITIONS}")
ENDIF(wxWidgets_DEFINITIONS)
+ IF (wxWidgets_DEFINITIONS_DEBUG)
+ SET_PROPERTY(DIRECTORY APPEND
+ PROPERTY COMPILE_DEFINITIONS_DEBUG ${wxWidgets_DEFINITIONS_DEBUG})
+ MSG("wxWidgets_DEFINITIONS_DEBUG=${wxWidgets_DEFINITIONS_DEBUG}")
+ ENDIF(wxWidgets_DEFINITIONS_DEBUG)
+
IF (wxWidgets_CXX_FLAGS)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${wxWidgets_CXX_FLAGS}")
MSG("wxWidgets_CXX_FLAGS=${wxWidgets_CXX_FLAGS}")