mirror of
https://github.com/reactos/CMake.git
synced 2024-12-11 21:34:32 +00:00
BUG #10209: Fixed FindwxWidget CXX flags parsing error.
Was not removing definition flags (-D...) from cxx flags, when the definition flag was last in the list returned from wx-config. --HG-- extra : rebase_source : 3452c52b92717f181e902abef38c1e2718ce3b27
This commit is contained in:
parent
867efc0d45
commit
f90bdaf38e
@ -723,10 +723,13 @@ ELSE(wxWidgets_FIND_STYLE STREQUAL "win32")
|
||||
|
||||
DBG_MSG_V("wxWidgets_CXX_FLAGS=${wxWidgets_CXX_FLAGS}")
|
||||
|
||||
# parse definitions from cxxflags; drop -D* from CXXFLAGS and the -D prefix
|
||||
# parse definitions from cxxflags;
|
||||
# drop -D* from CXXFLAGS and the -D prefix
|
||||
STRING(REGEX MATCHALL "-D[^;]+"
|
||||
wxWidgets_DEFINITIONS "${wxWidgets_CXX_FLAGS}")
|
||||
STRING(REGEX REPLACE "-D[^;]+;" ""
|
||||
STRING(REGEX REPLACE "-D[^;]+(;|$)" ""
|
||||
wxWidgets_CXX_FLAGS "${wxWidgets_CXX_FLAGS}")
|
||||
STRING(REGEX REPLACE ";$" ""
|
||||
wxWidgets_CXX_FLAGS "${wxWidgets_CXX_FLAGS}")
|
||||
STRING(REPLACE "-D" ""
|
||||
wxWidgets_DEFINITIONS "${wxWidgets_DEFINITIONS}")
|
||||
|
Loading…
Reference in New Issue
Block a user