Hi!
I've tripped across a bug in FindwxWidgets.cmake, in which (on Linux/Unix)
paths returned by wxconfig will be modified if their path names contain a
'-D'. The patch below fixes this. Can this please be applied? Thanks!
--- FindwxWidgets.cmake.orig 2013-09-25 10:34:52.835469000 -0400
+++ FindwxWidgets.cmake 2013-09-25 10:33:39.826506000 -0400
@@ -738,13 +738,13 @@
# parse definitions from cxxflags;
# drop -D* from CXXFLAGS and the -D prefix
- string(REGEX MATCHALL "-D[^;]+"
+ 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" ""
+ string(REPLACE "\\<-D" ""
wxWidgets_DEFINITIONS "${wxWidgets_DEFINITIONS}")
# parse include dirs from cxxflags; drop -I prefix
--
Powered by www.kitware.com
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Kitware offers various services to support the CMake community. For more
information on each offering, please visit:
CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake