Hello,<br><br>CMake 2.6.4 cannot generate project for VS2008 Win32 on the following environment:<br><br>- Windows Serevr 2003 Enterprise x64<br>- VS2003 (32bit)<br>- VS2005 (32bit)<br>- VS2008 (32bit)<br><br>It uses VS2003 toolset instead VS2008 because of the order of the directories in the CMakeVS9FindMake.cmake.<br>
<br>I changed this file like following:<br><br><span style="font-family: courier new,monospace;">FIND_PROGRAM(CMAKE_MAKE_PROGRAM</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> NAMES VCExpress devenv </span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> PATHS</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> "$ENV{VS90COMNTOOLS}/../IDE"</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> )</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">MARK_AS_ADVANCED(CMAKE_MAKE_PROGRAM)</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">SET(MSVC90 1)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">SET(MSVC_VERSION 1500)</span><br style="font-family: courier new,monospace;">
<br><br>And now it works well. Suppose we should not use directories in this file. The best way is to use registry or environment variable.<br><br>Regards.<br><br>Dima<br>