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:
Wayne Stambaugh 2014-08-22 16:40:17 -04:00
parent a26449b3ef
commit 547524cd0a
1 changed files with 4 additions and 0 deletions

View File

@ -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}")