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 ${_CMAKE_MAKE_PROGRAM_NAMES}
11 [HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\9.0\\Setup\\VS;EnvironmentDirectory]
12 [HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\9.0\\Setup;Dbghelp_path]
13 "$ENV{ProgramFiles}/Microsoft Visual Studio 9.0/Common7/IDE"
14 "$ENV{ProgramFiles}/Microsoft Visual Studio9.0/Common7/IDE"
15 "$ENV{ProgramFiles}/Microsoft Visual Studio 9/Common7/IDE"
16 "$ENV{ProgramFiles}/Microsoft Visual Studio9/Common7/IDE"
17 "$ENV{ProgramFiles} (x86)/Microsoft Visual Studio 9.0/Common7/IDE"
18 "$ENV{ProgramFiles} (x86)/Microsoft Visual Studio9.0/Common7/IDE"
19 "$ENV{ProgramFiles} (x86)/Microsoft Visual Studio 9/Common7/IDE"
20 "$ENV{ProgramFiles} (x86)/Microsoft Visual Studio9/Common7/IDE"
21 "/Program Files/Microsoft Visual Studio 9.0/Common7/IDE/"
22 "/Program Files/Microsoft Visual Studio 9/Common7/IDE/"
24 "$ENV{ProgramFiles} (x86)/Microsoft Visual Studio .NET/Common7/IDE"
25 "$ENV{ProgramFiles}/Microsoft Visual Studio .NET/Common7/IDE"
28 MARK_AS_ADVANCED(CMAKE_MAKE_PROGRAM)
30 SET(MSVC_VERSION 1500)