<div dir="ltr"><div>Hi!<br><br></div>I&#39;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 &#39;-D&#39;.  The patch below fixes this.  Can this please be applied?  Thanks!<br>
<br>--- FindwxWidgets.cmake.orig    2013-09-25 10:34:52.835469000 -0400<br>+++ FindwxWidgets.cmake 2013-09-25 10:33:39.826506000 -0400<br>@@ -738,13 +738,13 @@<br><br>         # parse definitions from cxxflags;<br>         #   drop -D* from CXXFLAGS and the -D prefix<br>
-        string(REGEX MATCHALL &quot;-D[^;]+&quot;<br>+        string(REGEX MATCHALL &quot;\\&lt;-D[^;]+&quot;<br>           wxWidgets_DEFINITIONS  &quot;${wxWidgets_CXX_FLAGS}&quot;)<br>-        string(REGEX REPLACE &quot;-D[^;]+(;|$)&quot; &quot;&quot;<br>
+        string(REGEX REPLACE &quot;\\&lt;-D[^;]+(;|$)&quot; &quot;&quot;<br>           wxWidgets_CXX_FLAGS &quot;${wxWidgets_CXX_FLAGS}&quot;)<br>         string(REGEX REPLACE &quot;;$&quot; &quot;&quot;<br>           wxWidgets_CXX_FLAGS &quot;${wxWidgets_CXX_FLAGS}&quot;)<br>
-        string(REPLACE &quot;-D&quot; &quot;&quot;<br>+        string(REPLACE &quot;\\&lt;-D&quot; &quot;&quot;<br>           wxWidgets_DEFINITIONS &quot;${wxWidgets_DEFINITIONS}&quot;)<br><br>         # parse include dirs from cxxflags; drop -I prefix<br>
<br></div>