[CMake] Cross-compilation for windows on Darwin with nighlty build fails

Eric Noulard eric.noulard at gmail.com
Sat Jul 14 06:22:04 EDT 2012


2012/7/13 Claus Klein <claus.klein at arcormail.de>:
> Can anyone please help?
>
> Thanks in advance
> Best Regards
> Claus
>
> With this CMAKE_TOOLCHAIN_FILE it just works, but there is always an error
> the first time cmake configure step is started from GUI:

Do you have the same error with command line cmake?
[...]
>
> # FIXME on APPLE this is needed too? (CmakeFindBinUtils.cmke)
> set(CMAKE_INSTALL_NAME_TOOL ${USER_ROOT_PATH}/install_name_tool)

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)

>
> # CMake Error at /Applications/CMake
> 2.8-8.app/Contents/share/cmake-2.8/Modules/CMakeFindBinUtils.cmake:71
> (MESSAGE):
> #   Could not find install_name_tool, please check your installation.
> <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
> # Call Stack (most recent call first):
> #   /Applications/CMake
> 2.8-8.app/Contents/share/cmake-2.8/Modules/CMakeDetermineCXXCompiler.cmake:177
> (INCLUDE)
> #   CMakeLists.txt:3 (project)
>

if it works on the second run then may be you didn't enable C or C++
language in your project
what is the project statement you use in your CMakeLists.txt

is it project(Blah NONE) ?
is it project(Blah Fortran)

in any case could you try
project(Blah C)?

-- 
Erk
Le gouvernement représentatif n'est pas la démocratie --
http://www.le-message.org


More information about the CMake mailing list