diff options
author | Alexander Neundorf <neundorf@kde.org> | 2007-05-17 20:49:31 (GMT) |
---|---|---|
committer | Alexander Neundorf <neundorf@kde.org> | 2007-05-17 20:49:31 (GMT) |
commit | ba2988e4c54be164502a9d94936900c5575327d7 (patch) | |
tree | df06a4ca1fd2b263e89f43c7355285a198e6daba /Modules | |
parent | 58debfd6bdd5d950b500bb9315241723ff019a11 (diff) | |
download | CMake-ba2988e4c54be164502a9d94936900c5575327d7.zip CMake-ba2988e4c54be164502a9d94936900c5575327d7.tar.gz CMake-ba2988e4c54be164502a9d94936900c5575327d7.tar.bz2 |
ENH: fail if install_name_tool wasn't found
Alex
Diffstat (limited to 'Modules')
-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 48925bc..b65877a 100644 --- a/Modules/CMakeFindBinUtils.cmake +++ b/Modules/CMakeFindBinUtils.cmake @@ -39,6 +39,10 @@ IF(APPLE) 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) |