[CMake] Specifying build directory

Ryan Pavlik rpavlik at iastate.edu
Thu Feb 18 08:54:57 EST 2010


You should do an out-of-source build, and have a separate build directory
for each configuration.
http://www.cmake.org/Wiki/CMake_FAQ#What_is_an_.22out-of-source.22_build.3F

Ryan

On Thu, Feb 18, 2010 at 1: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?
>
>
> Cheers,
> Anders
>
> --
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
>



-- 
Ryan Pavlik
HCI Graduate Student
Virtual Reality Applications Center
Iowa State University

rpavlik at iastate.edu
http://academic.cleardefinition.com
Internal VRAC/HCI Site: http://tinyurl.com/rpavlik
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20100218/5040bdc2/attachment.htm>


More information about the CMake mailing list