[CMake] Out-of-source build broken ?

Christian Ehrlicher Ch.Ehrlicher at gmx.de
Wed Jun 18 16:19:52 EDT 2008


Emmanuel Blot schrieb:
> I can't figure out why CMake keeps building in the source directory 
> rather than in the current directory:
> 
> $ cmake --version
> cmake version 2.6-patch 0
> 
> $ echo $PWD
> /home/eblot/t380/host/build/project
> 
> $ cmake ../../src/project
> -- Configuring done
> -- Generating done
> -- Build files have been written to: /home/eblot/t380/host/src/project
> 
> Should I need to set some specific configuration parameters to enable 
> out-of-source build ?
> 
> This issue occurs on Cygwin (WinXP SP3) - at least
> 
Maybe you've un cmake accidently in the source dir and now have a 
CMakeCache.txt in there which is picked up by cmake.


Christian


More information about the CMake mailing list