Hi,<br><br>I'm using FindwxWidgets, currently it seems that it is not possible to specify options like version, debug static and so on. At least not for non-WIN32 (The documentation describes to specify arguments to nmake at build time.).
<br><br>Perhaps it is an idea&nbsp; to pass options to wx-config. This could be done by making a small change to FindwxWidgets.cmake, for every call to wx-config add e.g. ${wxWidgets_WXCONFIG_OPTS}.<br><br>--&gt; ARGS &quot;${wxWidgets_CONFIG_EXECUTABLE} ${wxWidgets_WXCONFIG_OPTS} --libs ${wxWidgets_USE_LIBS}&quot;
<br><br>Then in the CMakelists.txt:<br>******************<br># wxWidgets_WXCONFIG_OPTS<br># Set options to pass to wx-config.<br># --debug=[yes/no] <br># --static=[yes/no] <br># --version=[2.6/2.8] &nbsp;<br># and so on <br># 
<br>&nbsp;<br>SET (wxWidgets_WXCONFIG_OPTS &quot;--debug=no --static=no --version=2.6&quot;)<br>*******************<br><br>If options are not satisfied wxWidgets is not found.<br>If the variable is not set, the behavior will not change.
<br><br>It is a very basic approach but it gives control over the wxWidgets options.<br><br>Cheers,<br><br>Peter.<br>