CMakeVS8FindMake.cmake 1.5 KB

12345678910111213141516171819202122232425262728293031323334
  1. #=============================================================================
  2. # Copyright 2004-2009 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. # VCExpress does not support cross compiling, which is necessary for Win CE
  14. SET( _CMAKE_MAKE_PROGRAM_NAMES devenv)
  15. IF(NOT CMAKE_CROSSCOMPILING)
  16. SET( _CMAKE_MAKE_PROGRAM_NAMES ${_CMAKE_MAKE_PROGRAM_NAMES} VCExpress)
  17. ENDIF(NOT CMAKE_CROSSCOMPILING)
  18. FIND_PROGRAM(CMAKE_MAKE_PROGRAM
  19. NAMES ${_CMAKE_MAKE_PROGRAM_NAMES}
  20. HINTS
  21. [HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\8.0\\Setup\\VS;EnvironmentDirectory]
  22. [HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\8.0\\Setup;Dbghelp_path]
  23. "$ENV{ProgramFiles}/Microsoft Visual Studio 8/Common7/IDE"
  24. "$ENV{ProgramFiles}/Microsoft Visual Studio8/Common7/IDE"
  25. "$ENV{ProgramFiles} (x86)/Microsoft Visual Studio 8/Common7/IDE"
  26. "$ENV{ProgramFiles} (x86)/Microsoft Visual Studio8/Common7/IDE"
  27. "/Program Files/Microsoft Visual Studio 8/Common7/IDE/"
  28. )
  29. MARK_AS_ADVANCED(CMAKE_MAKE_PROGRAM)
  30. SET(MSVC80 1)
  31. SET(MSVC_VERSION 1400)