Updated formatting of documentation plus a little reorganization.
[cmake.git] / Modules / CMakeVS10FindMake.cmake
blobce7964170bf547d9c05ed7693085e79a648307a9
2 # VCExpress does not support cross compiling, which is necessary for Win CE
3 SET( _CMAKE_MAKE_PROGRAM_NAMES devenv)
4 IF(NOT CMAKE_CROSSCOMPILING)
5   SET( _CMAKE_MAKE_PROGRAM_NAMES ${_CMAKE_MAKE_PROGRAM_NAMES} VCExpress)
6 ENDIF(NOT CMAKE_CROSSCOMPILING)
8 FIND_PROGRAM(CMAKE_MAKE_PROGRAM
9   NAMES MSBuild
10   HINTS 
11   "$ENV{SYSTEMROOT}/Microsoft.NET/Framework/v4.0.20506/"
12   c:/WINDOWS/Microsoft.NET/Framework/v4.0.20506/
13   )
15 FIND_PROGRAM(CMAKE_MAKE_PROGRAM
16   NAMES ${_CMAKE_MAKE_PROGRAM_NAMES}
17   HINTS
18   [HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\10.0\\Setup\\VS;EnvironmentDirectory]
19   [HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\10.0\\Setup;Dbghelp_path]
20   "$ENV{ProgramFiles}/Microsoft Visual Studio 10.0/Common7/IDE"
21   "$ENV{ProgramFiles}/Microsoft Visual Studio10.0/Common7/IDE"
22   "$ENV{ProgramFiles}/Microsoft Visual Studio 10/Common7/IDE"
23   "$ENV{ProgramFiles}/Microsoft Visual Studio10/Common7/IDE"
24   "$ENV{ProgramFiles} (x86)/Microsoft Visual Studio 10.0/Common7/IDE"
25   "$ENV{ProgramFiles} (x86)/Microsoft Visual Studio10.0/Common7/IDE"
26   "$ENV{ProgramFiles} (x86)/Microsoft Visual Studio 10/Common7/IDE"
27   "$ENV{ProgramFiles} (x86)/Microsoft Visual Studio10/Common7/IDE"
28   "/Program Files/Microsoft Visual Studio 10.0/Common7/IDE/"
29   "/Program Files/Microsoft Visual Studio 10/Common7/IDE/"
30   PATHS
31   "$ENV{ProgramFiles} (x86)/Microsoft Visual Studio .NET/Common7/IDE"
32   "$ENV{ProgramFiles}/Microsoft Visual Studio .NET/Common7/IDE"
33   
34   )
36 MARK_AS_ADVANCED(CMAKE_MAKE_PROGRAM)
37 SET(MSVC10 1)
38 SET(MSVC_VERSION 1600)