diff options
author | Alexander Neundorf <neundorf@kde.org> | 2007-05-18 14:55:35 (GMT) |
---|---|---|
committer | Alexander Neundorf <neundorf@kde.org> | 2007-05-18 14:55:35 (GMT) |
commit | 15a7414a60bc31cd75c5e5af2618c3d4ffc64944 (patch) | |
tree | b6911cb15e011cccea791ad79b52e8663cf7e4bd /Modules/CMakeFindBinUtils.cmake | |
parent | 891f2130cf27fdf965367cb2f37f0b1f068fadee (diff) | |
download | CMake-15a7414a60bc31cd75c5e5af2618c3d4ffc64944.zip CMake-15a7414a60bc31cd75c5e5af2618c3d4ffc64944.tar.gz CMake-15a7414a60bc31cd75c5e5af2618c3d4ffc64944.tar.bz2 |
COMP: if a new cmake runs on an old build tree, set CMAKE_LINKER to link to make it link
Alex
Diffstat (limited to 'Modules/CMakeFindBinUtils.cmake')
-rw-r--r-- | Modules/CMakeFindBinUtils.cmake | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/CMakeFindBinUtils.cmake b/Modules/CMakeFindBinUtils.cmake index b65877a..8eb1fa2 100644 --- a/Modules/CMakeFindBinUtils.cmake +++ b/Modules/CMakeFindBinUtils.cmake @@ -49,6 +49,10 @@ ENDIF(APPLE) IF("${CMAKE_CXX_COMPILER_ID}" MATCHES "MSVC" OR "${CMAKE_C_COMPILER_ID}" MATCHES "MSVC") FIND_PROGRAM(CMAKE_LINKER NAMES link PATHS ${_CMAKE_TOOLCHAIN_LOCATION} NO_DEFAULT_PATH) FIND_PROGRAM(CMAKE_LINKER NAMES link) + + IF(NOT CMAKE_LINKER) + MESSAGE(FATAL_ERROR "Could not find link, please check your installation.") + ENDIF(NOT CMAKE_LINKER) MARK_AS_ADVANCED(CMAKE_LINKER) ENDIF("${CMAKE_CXX_COMPILER_ID}" MATCHES "MSVC" OR "${CMAKE_C_COMPILER_ID}" MATCHES "MSVC") |