diff options
author | Richard M. Shaw <hobbes1069@gmail.com> | 2014-08-22 15:27:48 (GMT) |
---|---|---|
committer | Richard M. Shaw <hobbes1069@gmail.com> | 2014-08-22 15:27:48 (GMT) |
commit | e6fa6e60f6330ddf60294a0d9a6ed4cb3f27d4c4 (patch) | |
tree | dd336425bd14d3abff4a4e7583738c6b21df571f /Modules | |
parent | 8c30014982345567b80ec0dad6bd9eb40dfda505 (diff) | |
download | CMake-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.cmake | 7 |
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 |