[CMake] trouble with cmake 2.6-patch 0 cross compiling.
Phil Pellouchoud
Phil at slacker.com
Wed Jul 16 17:13:42 EDT 2008
-----Original Message-----
From: Bill Hoffman [mailto:bill.hoffman at kitware.com]
Sent: Wednesday, July 16, 2008 12:02 PM
To: Phil Pellouchoud
Cc: cmake at cmake.org
Subject: Re: [CMake] trouble with cmake 2.6-patch 0 cross compiling.
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
[phil]
I'm not sure what you expected from the 'cmake
-DCMAKE_TOOLCHAIN_FILE=foobar' - my toolchain file is called
toolchain.cmake
cmake --version gives
$ cmake --version
cmake version 2.6-patch 0
$
-phil
More information about the CMake
mailing list