[CMake] trouble with cmake 2.6-patch 0 cross compiling.

Phil Pellouchoud Phil at slacker.com
Wed Jul 16 14:51:28 EDT 2008


-----Original Message-----
From: Bill Hoffman [mailto:bill.hoffman at kitware.com] 
Sent: Wednesday, July 16, 2008 11:43 AM
To: Phil Pellouchoud
Cc: cmake at cmake.org
Subject: Re: [CMake] trouble with cmake 2.6-patch 0 cross compiling.



What output do you get when you run cmake?

rm -rf *
cmake -DCMAKE_TOOLCHAIN_FILE=toolchain.cmake ..

[phil] 

$ rm -rf * && cmake -DCMAKE_TOOLCHAIN_FILE=../toolchain.cmake .. && make
&& ./helloworld
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Configuring done
-- Generating done
-- Build files have been written to: /home/slacker/helloworld/build
Scanning dependencies of target helloworld
[100%] Building CXX object CMakeFiles/helloworld.dir/helloworld.cpp.obj
Linking CXX executable helloworld
[100%] Built target helloworld
hello world

$ 



More information about the CMake mailing list