[CMake] Out-of-source build

Bill Hoffman bill.hoffman at kitware.com
Sun Nov 11 10:33:45 EST 2007


Yinon Ehrlich wrote:
> Hi,
> 
> * I'm new to CMake, trying to convert our existing GNU Makefiles to CMake.
> * I need the out-of-source feature, and I want to make sure I do it the 
> right way:
>    SET(TOPLEVEL "../../..")
>    SET(CMAKE_BINARY_DIR ${CMAKE_SOURCE_DIR}/${TOPLEVEL}/bin)
>   ... is this the "right" way to do this ?
> 

Cmake automatically supports out of source build.  You should not do 
anything special.

-Bill


More information about the CMake mailing list