I am trying to use CMake to configure a very simple project that uses wxWidgets, and I am running into a problem. The wxUSE_GUI flag is set to 0 in the Makefile generated by CMake and I therefore cannot use the GUI part of wxWidgets.<br>
<br>Diving into FindwxWidgets.cmake, I see that compilation options are obtained through wx-config. Options to wx-config are based on only four flags that I can set or not in my CMakeLists.cmake, which are wxWidgets_USE_{DEBUG,UNICODE,UNIVERSAL,STATIC}.<br>
<br>The problem is that on my Ubuntu 9.04, there are two wxWidgets configuration in /usr/lib/wx/config. One is base-unicode-debug-2.8, the other is gtk2-unicode-debug-2.8. The base configuration (which cannot be used for GUI building) is the default configuration. And unfortunately, I cannot discriminated both configurations with the four aforementionned parameters. I am able to differentiate them only with the &quot;--toolkit&quot; option of wx-config. But I cannot add this option to the wxWidgets_SELECT_OPTIONS variable of FindwxWidgets.cmake.<br>
<br>Is this a &quot;bug&quot;, or am I missing something? What could be a work-around? I quicklu browsed the wx-config script and it seems to me that the setting of &#39;base&#39; as the default toolkit is more or less hard coded in it.<br>
<br>Thanks,<br><br>Paul<br>