~ubuntu-branches/ubuntu/lucid/cmake/lucid

« back to all changes in this revision

Viewing changes to Modules/CMakeVS10FindMake.cmake

  • Committer: Bazaar Package Importer
  • Author(s): Artur Rona
  • Date: 2009-12-16 11:11:54 UTC
  • mfrom: (3.1.9 sid)
  • Revision ID: james.westby@ubuntu.com-20091216111154-6accvv6yq86h2hkc
Tags: 2.8.0-5ubuntu1
* Merge from debian testing (LP: #497349). Remaining changes:
  - Keep the Replaces: on cmake-data to cover the Kubuntu version from
    Jaunty in case someone decides to do an (unsupported) Jaunty->Lucid
    upgrade.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
#=============================================================================
 
3
# Copyright 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 distributed 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(NOT CMAKE_CROSSCOMPILING)
 
20
 
 
21
FIND_PROGRAM(CMAKE_MAKE_PROGRAM
 
22
  NAMES MSBuild
 
23
  HINTS 
 
24
  "$ENV{SYSTEMROOT}/Microsoft.NET/Framework/[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\10.0;CLR Version]/"
 
25
  "c:/WINDOWS/Microsoft.NET/Framework/[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\10.0;CLR Version]/"
 
26
  )
 
27
 
 
28
FIND_PROGRAM(CMAKE_MAKE_PROGRAM
 
29
  NAMES ${_CMAKE_MAKE_PROGRAM_NAMES}
 
30
  HINTS
 
31
  [HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\10.0\\Setup\\VS;EnvironmentDirectory]
 
32
  [HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\10.0\\Setup;Dbghelp_path]
 
33
  "$ENV{ProgramFiles}/Microsoft Visual Studio 10.0/Common7/IDE"
 
34
  "$ENV{ProgramFiles}/Microsoft Visual Studio10.0/Common7/IDE"
 
35
  "$ENV{ProgramFiles}/Microsoft Visual Studio 10/Common7/IDE"
 
36
  "$ENV{ProgramFiles}/Microsoft Visual Studio10/Common7/IDE"
 
37
  "$ENV{ProgramFiles} (x86)/Microsoft Visual Studio 10.0/Common7/IDE"
 
38
  "$ENV{ProgramFiles} (x86)/Microsoft Visual Studio10.0/Common7/IDE"
 
39
  "$ENV{ProgramFiles} (x86)/Microsoft Visual Studio 10/Common7/IDE"
 
40
  "$ENV{ProgramFiles} (x86)/Microsoft Visual Studio10/Common7/IDE"
 
41
  "/Program Files/Microsoft Visual Studio 10.0/Common7/IDE/"
 
42
  "/Program Files/Microsoft Visual Studio 10/Common7/IDE/"
 
43
  PATHS
 
44
  "$ENV{ProgramFiles} (x86)/Microsoft Visual Studio .NET/Common7/IDE"
 
45
  "$ENV{ProgramFiles}/Microsoft Visual Studio .NET/Common7/IDE"
 
46
  
 
47
  )
 
48
 
 
49
MARK_AS_ADVANCED(CMAKE_MAKE_PROGRAM)
 
50
SET(MSVC10 1)
 
51
SET(MSVC_VERSION 1600)
 
52