diff options
author | Alexander Neundorf <neundorf@kde.org> | 2009-05-09 12:15:53 (GMT) |
---|---|---|
committer | Alexander Neundorf <neundorf@kde.org> | 2009-05-09 12:15:53 (GMT) |
commit | e0e93a3912a05d91eff4e13bb9e4feb014786ec0 (patch) | |
tree | e837e518752b55e7f4b4c7c015008bbdebb024d8 /Modules/CMakeVS9FindMake.cmake | |
parent | 9a3c5338fb03d55adfe7b7e7bde43883f8689f14 (diff) | |
download | CMake-e0e93a3912a05d91eff4e13bb9e4feb014786ec0.zip CMake-e0e93a3912a05d91eff4e13bb9e4feb014786ec0.tar.gz CMake-e0e93a3912a05d91eff4e13bb9e4feb014786ec0.tar.bz2 |
ENH: when cross compiling, e.g. for WinCE, don't use VCExpress, since this doesn't support it
This is the first patch to add support for WinCE to cmake (#7919)
Alex
Diffstat (limited to 'Modules/CMakeVS9FindMake.cmake')
-rw-r--r-- | Modules/CMakeVS9FindMake.cmake | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Modules/CMakeVS9FindMake.cmake b/Modules/CMakeVS9FindMake.cmake index a2c8e72..575fdfd 100644 --- a/Modules/CMakeVS9FindMake.cmake +++ b/Modules/CMakeVS9FindMake.cmake @@ -1,5 +1,12 @@ + +# VCExpress does not support cross compiling, which is necessary for Win CE +SET( _CMAKE_MAKE_PROGRAM_NAMES devenv) +IF(NOT CMAKE_CROSSCOMPILING) + SET( _CMAKE_MAKE_PROGRAM_NAMES ${_CMAKE_MAKE_PROGRAM_NAMES} VCExpress) +ENDIF(NOT CMAKE_CROSSCOMPILING) + FIND_PROGRAM(CMAKE_MAKE_PROGRAM - NAMES VCExpress devenv + NAMES ${_CMAKE_MAKE_PROGRAM_NAMES} PATHS [HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\9.0\\Setup\\VS;EnvironmentDirectory] [HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\9.0\\Setup;Dbghelp_path] |