[CMake] re-config on make all

Alexander Neundorf a.neundorf-work at gmx.net
Wed Sep 3 11:37:20 EDT 2008


On Thursday 28 August 2008, Vandenbroucke Sander wrote:
...
> I'm still on 2.4. Upgrading is planned some time in the future.
>
> > What is your exact original command line for running CMake?
>
> set CC=distcc nios2-elf-gcc
> set CXX=distcc nios2-elf-g++
> cmake -G "MSYS Makefiles" ../ -DCMAKE_SYSTEM=Generic
> -DCMAKE_C_COMPILER_WORKS=1 -DCMAKE_CXX_COMPILER_WORKS=1
> -DCMAKE_COMPILER_IS_GNUCC=1 -DCMAKE_COMPILER_IS_GNUCXX=1 -DTARGET=nios2

Oh, and you're  cross compiling. So I would really suggest to upgrade to 2.6.x 
as soon as possible. 
Then cmake knows about cross compiling and the variables are saved in the 
cache.

Alex


More information about the CMake mailing list