mirror of
https://github.com/reactos/CMake.git
synced 2024-11-28 14:01:21 +00:00
77ac9b8b9c
Copy cmGlobalVisualStudio11Generator to cmGlobalVisualStudio12Generator and update version numbers accordingly. Add the VS12 enumeration value. Add module CMakeVS12FindMake to find MSBuild. Look for MSBuild in its now-dedicated Windows Registry entry. Teach the platform module Windows-MSVC to set MSVC12 and document the variable. Teach module InstallRequiredSystemLibraries to look for the VS 12 runtime libraries. Teach tests CheckCompilerRelatedVariables, Preprocess, VSExternalInclude, and RunCMake.GeneratorToolset to treat VS 12 as they do VS 10 and 11. Inspired-by: Minmin Gong <minmin.gong@gmail.com>
28 lines
1.1 KiB
CMake
28 lines
1.1 KiB
CMake
|
|
#=============================================================================
|
|
# Copyright 2007-2013 Kitware, Inc.
|
|
#
|
|
# Distributed under the OSI-approved BSD License (the "License");
|
|
# see accompanying file Copyright.txt for details.
|
|
#
|
|
# This software is distributed WITHOUT ANY WARRANTY; without even the
|
|
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
# See the License for more information.
|
|
#=============================================================================
|
|
# (To distribute this file outside of CMake, substitute the full
|
|
# License text for the above reference.)
|
|
|
|
# Always use MSBuild because:
|
|
# - devenv treats command-line builds as recently-loaded projects in the IDE
|
|
# - devenv does not appear to support non-standard platform toolsets
|
|
# If we need devenv for Intel Fortran in the future we should add
|
|
# a special case when Fortran is enabled.
|
|
find_program(CMAKE_MAKE_PROGRAM
|
|
NAMES MSBuild
|
|
HINTS "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\MSBuild\\ToolsVersions\\12.0;MSBuildToolsPath]"
|
|
)
|
|
|
|
mark_as_advanced(CMAKE_MAKE_PROGRAM)
|
|
set(MSVC12 1)
|
|
set(MSVC_VERSION 1800)
|