CMakeVS12FindMake.cmake 1.1 KB

123456789101112131415161718192021222324252627
  1. #=============================================================================
  2. # Copyright 2007-2013 Kitware, Inc.
  3. #
  4. # Distributed under the OSI-approved BSD License (the "License");
  5. # see accompanying file Copyright.txt for details.
  6. #
  7. # This software is distributed WITHOUT ANY WARRANTY; without even the
  8. # implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  9. # See the License for more information.
  10. #=============================================================================
  11. # (To distribute this file outside of CMake, substitute the full
  12. # License text for the above reference.)
  13. # Always use MSBuild because:
  14. # - devenv treats command-line builds as recently-loaded projects in the IDE
  15. # - devenv does not appear to support non-standard platform toolsets
  16. # If we need devenv for Intel Fortran in the future we should add
  17. # a special case when Fortran is enabled.
  18. find_program(CMAKE_MAKE_PROGRAM
  19. NAMES MSBuild
  20. HINTS "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\MSBuild\\ToolsVersions\\12.0;MSBuildToolsPath]"
  21. )
  22. mark_as_advanced(CMAKE_MAKE_PROGRAM)
  23. set(MSVC12 1)
  24. set(MSVC_VERSION 1800)