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

cmake-commits at cmake.org cmake-commits at cmake.org
Thu May 17 16:49:33 EDT 2007


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

Modified Files:
	CMakeFindBinUtils.cmake 
Log Message:
ENH: fail if install_name_tool wasn't found

Alex



Index: CMakeFindBinUtils.cmake
===================================================================
RCS file: /cvsroot/CMake/CMake/Modules/CMakeFindBinUtils.cmake,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- CMakeFindBinUtils.cmake	17 May 2007 17:20:43 -0000	1.2
+++ CMakeFindBinUtils.cmake	17 May 2007 20:49:31 -0000	1.3
@@ -39,6 +39,10 @@
   FIND_PROGRAM(CMAKE_INSTALL_NAME_TOOL NAMES install_name_tool PATHS ${_CMAKE_TOOLCHAIN_LOCATION} NO_DEFAULT_PATH)
   FIND_PROGRAM(CMAKE_INSTALL_NAME_TOOL NAMES install_name_tool)
 
+  IF(NOT CMAKE_INSTALL_NAME_TOOL)
+    MESSAGE(FATAL_ERROR "Could not find install_name_tool, please check your installation.")
+  ENDIF(NOT CMAKE_INSTALL_NAME_TOOL)
+
   MARK_AS_ADVANCED(CMAKE_INSTALL_NAME_TOOL)
 ENDIF(APPLE)
 



More information about the Cmake-commits mailing list