So you have two choices to get it to work with CMake 2.6.2: modify FindwxWidgets.cmake to look in the mswu directory, or set&nbsp;<span class="Apple-style-span" style="border-collapse: collapse; font-family: &#39;courier new&#39;; font-size: 10px; ">wxWidgets_LIB_DIR</span>&nbsp;yourself before doing the wx find... Either one should get you one step further along.<div>
<br></div><div>If it is also happening with CVS HEAD of CMake, then I would open an issue in the bug tracker against the FindwxWidgets.cmake module that says &quot;cannot find the UNICODE wxWidgets_LIB_DIR because &#39;mswu&#39; is not searched...&quot;</div>
<div><br></div><div><br></div><div>HTH,</div><div>David</div><div><br><br><div class="gmail_quote">On Mon, Jan 26, 2009 at 7:49 PM, Robert Dailey <span dir="ltr">&lt;<a href="mailto:rcdailey@gmail.com">rcdailey@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi,<br><br>I&#39;m currently using CMake 2.6.2 and the FindwxWidgets.cmake module that comes pre-packaged with the installation doesn&#39;t seem to properly work on windows. I set CMAKE_PREFIX_PATH so that it would be able to find the wxWidgets in a custom location. It does find wxWidgets_ROOT_DIR, but does not find wxWidgets_LIB_DIR. We are using a unicode build of wxWidgets on Windows, and our lib directory looks like:<br>

<br>${wxWidgets_ROOT_DIR}/lib/mswu/wx/setup.h<br><br>However, look at this snippet of code from FindwxWidgets.cmake:<br><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FIND_PATH(wxWidgets_LIB_DIR</span><br style="font-family:courier new,monospace">

<span style="font-family:courier new,monospace">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NAMES msw/build.cfg mswd/build.cfg</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PATHS</span><br style="font-family:courier new,monospace">

<span style="font-family:courier new,monospace">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ${WX_ROOT_DIR}/lib/${WX_LIB_DIR_PREFIX}_dll&nbsp;&nbsp; # prefer shared</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ${WX_ROOT_DIR}/lib/${WX_LIB_DIR_PREFIX}_lib</span><br style="font-family:courier new,monospace">

<span style="font-family:courier new,monospace">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DOC &quot;Path to wxWidgets libraries?&quot;</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NO_DEFAULT_PATH</span><br style="font-family:courier new,monospace">

<span style="font-family:courier new,monospace">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; )</span><br><br>Notice it is only checking in &quot;msw&quot; and not &quot;mswu&quot;. Also, I do not have a build.cfg file (I only keep relevant files inside my wxWidgets directory). This file is enormous and complex, so I&#39;m not even sure if this code is even being used or if it matters.<br>

<br>The output I&#39;m getting from the GUI CMake tool is:<br><br><span style="color:rgb(255, 0, 0)">CMake Error at C:/Program Files/CMake 2.6/share/cmake-2.6/Modules/FindPackageHandleStandardArgs.cmake:57 (MESSAGE):</span>
<p style="margin:0px;text-indent:0px;color:rgb(255, 0, 0)">  Could NOT find wxWidgets (missing: wxWidgets_FOUND)</p>
<p style="margin:0px;text-indent:0px;color:rgb(255, 0, 0)">Call Stack (most recent call first):</p>
<p style="margin:0px;text-indent:0px;color:rgb(255, 0, 0)">  C:/Program Files/CMake 2.6/share/cmake-2.6/Modules/FindwxWidgets.cmake:765 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)</p>
<p style="margin:0px;text-indent:0px;color:rgb(255, 0, 0)">  tools/tile_editor/CMakeLists.txt:1 (find_package)</p><br>Can anyone help me figure out what is going on? This thing *should* be simple to use! Thanks.<br>
<br>_______________________________________________<br>
CMake mailing list<br>
<a href="mailto:CMake@cmake.org">CMake@cmake.org</a><br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br></blockquote></div><br></div>