[cmake-commits] alex committed CMakeFindBinUtils.cmake 1.3 1.4

cmake-commits at cmake.org cmake-commits at cmake.org
Fri May 18 10:55:37 EDT 2007


Update of /cvsroot/CMake/CMake/Modules
In directory public:/mounts/ram/cvs-serv32148/Modules

Modified Files:
	CMakeFindBinUtils.cmake 
Log Message:
COMP: if a new cmake runs on an old build tree, set CMAKE_LINKER to link to make it link

Alex


Index: CMakeFindBinUtils.cmake
===================================================================
RCS file: /cvsroot/CMake/CMake/Modules/CMakeFindBinUtils.cmake,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- CMakeFindBinUtils.cmake	17 May 2007 20:49:31 -0000	1.3
+++ CMakeFindBinUtils.cmake	18 May 2007 14:55:35 -0000	1.4
@@ -49,6 +49,10 @@
 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")



More information about the Cmake-commits mailing list