[CMake] Linux In-the-source Build multiple modes without swithing

Michael Jackson mike.jackson at bluequartz.net
Wed Jun 17 11:43:05 EDT 2009



On Jun 17, 2009, at 11:06 AM, Charlie Sun wrote:

> Hi,
> I'm trying to do a linux  build with both release and debug mode. In  
> stead of builing out of source as indicated on the FAQ 4.15, I  
> really need to do in the source build. currently, if I do a release  
> build and then a debug build and then another release build. It will  
> actually rebuild the release and forgets the previous release build.  
> Is it because cmake is only generating one set of objective files  
> when doing in-the-source, either release or debug? Is there a way to  
> have both? Any help is greatly appreciated!
>
> Regards,
>
> Charlie
>

Is there a way to have both. Yes. Have Build Directories, even within  
the project dir.

So you have the following:

project
   |---DebugBuild
   |---ReleaseBuild
   |---CMakeLists.txt

I am curious why you think you need an in source build?


Mike Jackson


More information about the CMake mailing list