[Cmake] Output directories

Brad King brad . king at kitware . com
Mon, 6 Jan 2003 14:21:29 -0500 (EST)


Hi Patrick,

> I want to automatically create directories "hello/src1/Debug" and
> "hello/src2/Debug" and put output files (.obj, .lib, .exe, .dll) in
> those folders when I am compiling in debug mode. I want to do the same
> with Release mode (create "hello/src1/Release" directory).

This is already the default behavior for Visual Studio 6 and 7.  For
NMake, set the CMAKE_BUILD_TYPE cache entry to "Debug" or "Release" when
using the CMakeSetup dialog (I think the default is Debug).

-Brad