[CMake] CMake for Visual and BUILD_TYPE

Xavier Larrodé xlarrode at gmail.com
Thu Sep 17 02:44:00 EDT 2009


Ok thank you

2009/9/17 Tyler Roscoe <tyler at cryptio.net>

> On Thu, Sep 17, 2009 at 07:55:29AM +0200, Xavier Larrodé wrote:
> > On linux i always use the command CMAKE_BUILD_TYPE to set the binary dir.
> > But on windows, even if a project is set with cmake as Build Debug, it
> > generates the Release cmake project too.
>
> In Visual Studio and other IDEs, the user picks which configuration to
> build from a drop-down, so you can't know which thing you're going to
> build at CMake ime. It's a huge pain in the butt for build development
> (though quite useful for IDE users).
>
> Some things that help a lot are:
>
> - CMAKE_CFG_INTDIR, which basically resolves to $(OutDir) in VS. Check
>  the docs for more details.
>
> - Most of the key properties (COMPILE_DEFINITION, LINK_FLAGS) have
>  _DEBUG and _RELEASE variants that are applied only to those build
>  configs.
>
> Poke around in the archives with some of those keywords to see more
> examples.
>
> tyler
>



-- 
Xavier Larrodé
Ingenieur expert GVT
http://www.gvt-nexter.fr
xlarrode at gmail.com     _______________________
12 Rue de la Vallée
1050 Ixelles
+32 (0)2 648 71 04
Belgique
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20090917/1ef6cdf4/attachment-0001.htm>


More information about the CMake mailing list