2 #=============================================================================
3 # Copyright 2007-2011 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 # Look for devenv as a build program. We need to use this to support
16 # Intel Fortran integration into VS. MSBuild can not be used for that case
17 # since Intel Fortran uses the older devenv file format.
18 find_program(CMAKE_MAKE_PROGRAM
21 [HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\11.0\\Setup\\VS;EnvironmentDirectory]
22 [HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\11.0\\Setup;Dbghelp_path]
23 "$ENV{ProgramFiles}/Microsoft Visual Studio 11.0/Common7/IDE"
24 "$ENV{ProgramFiles}/Microsoft Visual Studio11.0/Common7/IDE"
25 "$ENV{ProgramFiles}/Microsoft Visual Studio 11/Common7/IDE"
26 "$ENV{ProgramFiles}/Microsoft Visual Studio11/Common7/IDE"
27 "$ENV{ProgramFiles} (x86)/Microsoft Visual Studio 11.0/Common7/IDE"
28 "$ENV{ProgramFiles} (x86)/Microsoft Visual Studio11.0/Common7/IDE"
29 "$ENV{ProgramFiles} (x86)/Microsoft Visual Studio 11/Common7/IDE"
30 "$ENV{ProgramFiles} (x86)/Microsoft Visual Studio11/Common7/IDE"
31 "/Program Files/Microsoft Visual Studio 11.0/Common7/IDE/"
32 "/Program Files/Microsoft Visual Studio 11/Common7/IDE/"
35 # if devenv is not found, then use MSBuild.
36 # it is expected that if devenv is not found, then we are
37 # dealing with Visual Studio Express.
38 if(NOT CMAKE_CROSSCOMPILING)
39 set(_FDIR "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\SxS\\VC7;FrameworkDir32]")
40 set(_FVER "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\SxS\\VC7;FrameworkVer32]")
41 find_program(CMAKE_MAKE_PROGRAM
45 [HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\11.0\\Setup\\VS;ProductDir]
46 "$ENV{SYSTEMROOT}/Microsoft.NET/Framework/[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\11.0;CLR Version]/"
47 "c:/WINDOWS/Microsoft.NET/Framework/[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\11.0;CLR Version]/"
48 "$ENV{SYSTEMROOT}/Microsoft.NET/Framework/[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VCExpress\\11.0;CLR Version]/")
51 mark_as_advanced(CMAKE_MAKE_PROGRAM)
53 set(MSVC_VERSION 1700)