[cmake-developers] [CMake] Cross-compilation for windows on Darwin with nighlty build fails
Claus Klein
claus.klein at arcormail.de
Sat Jul 21 04:38:12 EDT 2012
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)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20120721/c0426b5f/attachment.html>
More information about the cmake-developers
mailing list