[CMake] select debug or optimized at make time instead of at cmake time

2006-10-06 Thread Richard Fuchs
Is there a way to be able to select if the build will be debug or optimized at make time instead of during cmake time? So, I can SET(CMAKE_BUILD_TYPE Debug) or SET(CMAKE_BUILD_TYPE Release) for debug or optimized code respectively, then when I run make, the corresponding compiler flags are set

Re: [CMake] select debug or optimized at make time instead of at cmake time

2006-10-06 Thread Brad King
Richard Fuchs wrote: > Is there a way to be able to select if the build will be debug or > optimized at make time instead of during cmake time? > > So, I can SET(CMAKE_BUILD_TYPE Debug) or SET(CMAKE_BUILD_TYPE Release) > for debug or optimized code respectively, then when I run make, the > corresp

Re: [CMake] select debug or optimized at make time instead of at cmake time

2006-10-06 Thread Alexander Neundorf
Hi, Von: Brad King <[EMAIL PROTECTED]> > Richard Fuchs wrote: > > Is there a way to be able to select if the build will be debug or > > optimized at make time instead of during cmake time? > > > > So, I can SET(CMAKE_BUILD_TYPE Debug) or SET(CMAKE_BUILD_TYPE Release) > > for debug or optimized c

Re: [CMake] select debug or optimized at make time instead of at cmake time

2006-10-06 Thread Warren Turkal
On Friday 06 October 2006 15:34, Alexander Neundorf wrote: > Or you simply create two build directories, one set up for release builds, > and one setup for debug builds. For that you have to use out-of-source > builds. Speaking of this, is there a way to completely remove all traces of CMake exce

Re: [CMake] select debug or optimized at make time instead of at cmake time

2006-10-06 Thread Alexander Neundorf
Von: Warren Turkal <[EMAIL PROTECTED]> > On Friday 06 October 2006 15:34, Alexander Neundorf wrote: > > Or you simply create two build directories, one set up for release > builds, > > and one setup for debug builds. For that you have to use out-of-source > > builds. > > Speaking of this, is the