diff options
author | David Cole <david.cole@kitware.com> | 2008-12-30 14:11:54 (GMT) |
---|---|---|
committer | David Cole <david.cole@kitware.com> | 2008-12-30 14:11:54 (GMT) |
commit | b6402578843ea0b5ae05028b57465aa877e12c28 (patch) | |
tree | 6d65c25a61d124741f0aa466bd7d34a124745492 /Modules/Platform | |
parent | baecf2a31c6742f62b7d324dc24879b15852fe3f (diff) | |
download | CMake-b6402578843ea0b5ae05028b57465aa877e12c28.zip CMake-b6402578843ea0b5ae05028b57465aa877e12c28.tar.gz CMake-b6402578843ea0b5ae05028b57465aa877e12c28.tar.bz2 |
BUG: Fix install_name_tool problem on the Mac when a PROJECT(... NONE) is followed by multiple calls to ENABLE_LANGUAGE. Use find_program to set the CMAKE_INSTALL_NAME_TOOL variable so it gets saved in the cache as a full path to the install_name_tool executable rather than a simple set which eventually goes out of scope.
Diffstat (limited to 'Modules/Platform')
-rw-r--r-- | Modules/Platform/Darwin.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/Platform/Darwin.cmake b/Modules/Platform/Darwin.cmake index 97472cb..4506417 100644 --- a/Modules/Platform/Darwin.cmake +++ b/Modules/Platform/Darwin.cmake @@ -52,7 +52,7 @@ SET(CMAKE_FIND_LIBRARY_SUFFIXES ".dylib" ".so" ".a") # and still cmake didn't fail in CMakeFindBinUtils.cmake (because it isn't rerun) # hardcode CMAKE_INSTALL_NAME_TOOL here to install_name_tool, so it behaves as it did before, Alex IF(NOT DEFINED CMAKE_INSTALL_NAME_TOOL) - SET(CMAKE_INSTALL_NAME_TOOL install_name_tool) + FIND_PROGRAM(CMAKE_INSTALL_NAME_TOOL install_name_tool) ENDIF(NOT DEFINED CMAKE_INSTALL_NAME_TOOL) # find installed SDKs FILE(GLOB _CMAKE_OSX_SDKS "/Developer/SDKs/*") |