Imported Upstream version 2.8.10.2
[platform/upstream/cmake.git] / Modules / CMakeVS8FindMake.cmake
1
2 #=============================================================================
3 # Copyright 2004-2009 Kitware, Inc.
4 #
5 # Distributed under the OSI-approved BSD License (the "License");
6 # see accompanying file Copyright.txt for details.
7 #
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.)
14
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)
19 endif()
20
21 find_program(CMAKE_MAKE_PROGRAM
22   NAMES ${_CMAKE_MAKE_PROGRAM_NAMES}
23   HINTS
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/"
31   )
32 mark_as_advanced(CMAKE_MAKE_PROGRAM)
33 set(MSVC80 1)
34 set(MSVC_VERSION 1400)