mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-06 04:03:27 +03:00
UsewxWidgets: CFLAGS are expected to be a string here, not a list.
This commit is contained in:
1 parent
8c30014982
commit
e6fa6e60f6
1 file changed
+5
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user