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

Bill Hoffman bill.hoffman at kitware.com
Wed Jul 16 15:01:42 EDT 2008


Phil Pellouchoud wrote:
> -----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
> 
> $ 
> 
> 
Can you try this:

rm -rf * && cmake -DCMAKE_TOOLCHAIN_FILE=foobar

Also, cmake --version.

-Bill


More information about the CMake mailing list