Fix bug in FindwxWidgets.cmake.
* Fix C flag parser when there is more than one flag defined after includes when wx-config --cflags is called.
This commit is contained in:
parent
a26449b3ef
commit
547524cd0a
|
@ -783,6 +783,10 @@ ELSE(wxWidgets_FIND_STYLE STREQUAL "win32")
|
|||
STRING(REPLACE "-I" ""
|
||||
wxWidgets_INCLUDE_DIRS "${wxWidgets_INCLUDE_DIRS}")
|
||||
|
||||
# Flags are a string, not a list, fix it here
|
||||
string(REPLACE ";" " "
|
||||
wxWidgets_CXX_FLAGS "${wxWidgets_CXX_FLAGS}")
|
||||
|
||||
DBG_MSG_V("wxWidgets_DEFINITIONS=${wxWidgets_DEFINITIONS}")
|
||||
DBG_MSG_V("wxWidgets_INCLUDE_DIRS=${wxWidgets_INCLUDE_DIRS}")
|
||||
DBG_MSG_V("wxWidgets_CXX_FLAGS=${wxWidgets_CXX_FLAGS}")
|
||||
|
|
Loading…
Reference in New Issue