[Cmake] out of source builds

William A. Hoffman billlist at nycap.rr.com
Mon Aug 2 16:51:36 EDT 2004


You may want to see this page:
http://www.cmake.org/HTML/RunningCMake.html

Basically, you should tell ccmake, cmake or CMakeSetup where
you want the binary tree to be, and this should not involve changing
any cache or cmake variables.

-Bill


At 04:43 PM 8/2/2004, David Somers wrote:
>Hi,
>
>I'm trying to get Cmake to do out of source builds with MSVC6.
>
>So, I'm trying to get the output directories away from my source tree....
>but I'm getting very confused!
>
>SET(EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_SOURCE_DIR}-exe) seems to set the
>output directory.
>
>SET (CMAKE_CURRENT_BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR}-bin) seems to have
>no effect.
>
>And I can't seem to set the location of th eintermediate files out of my
>source tree.
>
>I'm probably doing something fundamentally wrong, so any help appreciated.
>
>(also, I tried using
>SET_TARGET_PROPERTIES(${CMAKE_CURRENT_SOURCE_DIR}/preproc.c PROPERTIES
>DEFINE_SYMBOL "_POSIX_" ) to set a preprocessor definition on a specific
>file, but that seems not to work).
>
>Regards,
>
>David
>
>_______________________________________________
>Cmake mailing list
>Cmake at www.cmake.org
>http://www.cmake.org/mailman/listinfo/cmake 



More information about the Cmake mailing list