Hi Eric,

would it be possible to change the CMakeFindBinUtils.cmake like my patch?
With this this changes it works fine and it is faster too.

But I do not understand, why the second times, FIND_PROGRAM() fails?

HINT: The original version works too without this line set(CMAKE_INSTALL_NAME_TOOL ${USER_ROOT_PATH}/install_name_tool) at my CMAKE_TOOLCHAIN_FILE !


I have uploaded a log file to http://public.kitware.com/Bug/view.php?id=13379) which shows what happens without this patch.

Claus


claus-kleins-macbook-pro:cmake clausklein$ diff -u Modules/ CMakeFindBinUtils.cmake /usr/local/share/cmake-2.8/Modules/ CMakeFindBinUtils.cmake
--- Modules/CMakeFindBinUtils.cmake     2012-05-20 19:04:26.000000000 +0200
+++ /usr/local/share/cmake-2.8/Modules/CMakeFindBinUtils.cmake 2012-07-20 20:10:00.000000000 +0200
@@ -64,7 +64,7 @@


 # on Apple there really should be install_name_tool
-IF(APPLE)
+IF(APPLE AND NOT CMAKE_INSTALL_NAME_TOOL)
FIND_PROGRAM(CMAKE_INSTALL_NAME_TOOL NAMES install_name_tool HINTS ${_CMAKE_TOOLCHAIN_LOCATION})

   IF(NOT CMAKE_INSTALL_NAME_TOOL)
@@ -72,4 +72,4 @@
   ENDIF(NOT CMAKE_INSTALL_NAME_TOOL)

   MARK_AS_ADVANCED(CMAKE_INSTALL_NAME_TOOL)
-ENDIF(APPLE)
+ENDIF(APPLE AND NOT CMAKE_INSTALL_NAME_TOOL)
claus-kleins-macbook-pro:cmake clausklein$


On 14.07.2012, at 12:22, Eric Noulard wrote:

FindBinUtils should find this one on his own as soon as C or C++ compiler
has been found (this is not working for fortran, see:
http://public.kitware.com/Bug/view.php?id=13379)

--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers

Reply via email to