2 #=============================================================================
3 # Copyright 2004-2009 Kitware, Inc.
5 # Distributed under the OSI-approved BSD License (the "License");
6 # see accompanying file Copyright.txt for details.
8 # This software is distributed WITHOUT ANY WARRANTY; without even the
9 # implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10 # See the License for more information.
11 #=============================================================================
12 # (To distribute this file outside of CMake, substitute the full
13 # License text for the above reference.)
15 # VCExpress does not support cross compiling, which is necessary for Win CE
16 set( _CMAKE_MAKE_PROGRAM_NAMES devenv)
17 if(NOT CMAKE_CROSSCOMPILING)
18 set( _CMAKE_MAKE_PROGRAM_NAMES ${_CMAKE_MAKE_PROGRAM_NAMES} VCExpress)
21 find_program(CMAKE_MAKE_PROGRAM
22 NAMES ${_CMAKE_MAKE_PROGRAM_NAMES}
24 [HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\8.0\\Setup\\VS;EnvironmentDirectory]
25 [HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\8.0\\Setup;Dbghelp_path]
26 "$ENV{ProgramFiles}/Microsoft Visual Studio 8/Common7/IDE"
27 "$ENV{ProgramFiles}/Microsoft Visual Studio8/Common7/IDE"
28 "$ENV{ProgramFiles} (x86)/Microsoft Visual Studio 8/Common7/IDE"
29 "$ENV{ProgramFiles} (x86)/Microsoft Visual Studio8/Common7/IDE"
30 "/Program Files/Microsoft Visual Studio 8/Common7/IDE/"
32 mark_as_advanced(CMAKE_MAKE_PROGRAM)
34 set(MSVC_VERSION 1400)