summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorRichard M. Shaw <hobbes1069@gmail.com>2014-08-22 15:27:48 (GMT)
committerRichard M. Shaw <hobbes1069@gmail.com>2014-08-22 15:27:48 (GMT)
commite6fa6e60f6330ddf60294a0d9a6ed4cb3f27d4c4 (patch)
treedd336425bd14d3abff4a4e7583738c6b21df571f /Modules
parent8c30014982345567b80ec0dad6bd9eb40dfda505 (diff)
downloadCMake-e6fa6e60f6330ddf60294a0d9a6ed4cb3f27d4c4.zip
CMake-e6fa6e60f6330ddf60294a0d9a6ed4cb3f27d4c4.tar.gz
CMake-e6fa6e60f6330ddf60294a0d9a6ed4cb3f27d4c4.tar.bz2
UsewxWidgets: CFLAGS are expected to be a string here, not a list.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/UsewxWidgets.cmake7
1 files changed, 5 insertions, 2 deletions
diff --git a/Modules/UsewxWidgets.cmake b/Modules/UsewxWidgets.cmake
index f2f260d..b3633a6 100644
--- a/Modules/UsewxWidgets.cmake
+++ b/Modules/UsewxWidgets.cmake
@@ -88,8 +88,11 @@ if (wxWidgets_FOUND)
endif()
if (wxWidgets_CXX_FLAGS)
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${wxWidgets_CXX_FLAGS}")
- MSG("wxWidgets_CXX_FLAGS=${wxWidgets_CXX_FLAGS}")
+ # Flags are expected to be a string here, not a list.
+ string(REPLACE ";" " " wxWidgets_CXX_FLAGS_str "${wxWidgets_CXX_FLAGS}")
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${wxWidgets_CXX_FLAGS_str}")
+ MSG("wxWidgets_CXX_FLAGS=${wxWidgets_CXX_FLAGS_str}")
+ unset(wxWidgets_CXX_FLAGS_str)
endif()
# DEPRECATED JW