diff options
author | Miguel A. Figueroa-Villanueva <miguelf@ieee.org> | 2009-02-24 21:49:15 (GMT) |
---|---|---|
committer | Miguel A. Figueroa-Villanueva <miguelf@ieee.org> | 2009-02-24 21:49:15 (GMT) |
commit | cf55e01adadfa569715fac21373c7fda089b3fe8 (patch) | |
tree | e5dea908df163e37940509f2a440fd1fde44411b /Modules/UsewxWidgets.cmake | |
parent | b5db18e72322862883e6d0695e3e0cc5826f39c9 (diff) | |
download | CMake-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.cmake | 9 |
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}") |