[CMake] Specifying build directory

John Drescher drescherjm at gmail.com
Thu Feb 18 09:02:59 EST 2010


On Thu, Feb 18, 2010 at 2:38 AM, Anders Backman <andersb at cs.umu.se> wrote:
> Hi all.
> Im using latest (2.8 CMake) under Windows, VisualStudio 2008.
>
> When I mix x86 and x64 builds, I would like to separate the actual output
> directory for the builds so that I dont get problems about mixing build
> types.
> Right now, the obj files etc is created in: src\foo.dir\Debug
> no matter if I build in x86 OR in x64. I would like this to become:
> src\foo.dir\X86\Debug and src\foo.dir\X64\Debug
> Is there a way to specify this?
>

I do this all the time. Just create separate build folders by running
cmake-gui 2 (or more) times.

I put my source code in
x:\CMakeBased\SomeProject

and then build to

32bit\vc80\SomeProject
32bit\vc90\SomeProject

64bit\vc.90\SomeProject

John


More information about the CMake mailing list