[CMake] CMakeVSXXFindMake.cmake should use VSXXCOMNTOOLS variable

Dmytro Ovdiienko dmitriy.ovdienko at gmail.com
Thu May 28 11:02:17 EDT 2009


Hello,

CMake 2.6.4 cannot generate project for VS2008 Win32 on the following
environment:

- Windows Serevr 2003 Enterprise x64
- VS2003  (32bit)
- VS2005 (32bit)
- VS2008 (32bit)

It uses VS2003 toolset instead VS2008 because of the order of the
directories in the CMakeVS9FindMake.cmake.

I changed this file like following:

FIND_PROGRAM(CMAKE_MAKE_PROGRAM
  NAMES VCExpress devenv
  PATHS
  "$ENV{VS90COMNTOOLS}/../IDE"
  )
MARK_AS_ADVANCED(CMAKE_MAKE_PROGRAM)
SET(MSVC90 1)
SET(MSVC_VERSION 1500)


And now it works well. Suppose we should not use directories in this file.
The best way is to use registry or environment variable.

Regards.

Dima
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20090528/b2b4d6a9/attachment.htm>


More information about the CMake mailing list