[Cmake] Vc project file debug/release

William A. Hoffman billlist at nycap.rr.com
Fri, 12 Mar 2004 09:22:50 -0500


At 04:57 PM 3/11/2004, Klaas Holwerda wrote:
>Hi William,
>
>Thanks for the quick reply, this seems promising.
>But how do <debug | optimized> relate to the 4 types of configuration generated in the project file?
>I see Release | Debug | MinSizeRel | RelWithdebug, but only two options are possible?

Optimized is used for all but Debug, and debug is used for Debug.

>Does this same trick also work for other commands?
>
>I found:
>     SET(WXWINDOWS_LIBRARIES ${CMAKE_WXWINDOWS_LIBRARIES}
>       debug     ${WXWINDOWS_SHARED_DEBUG_LIBRARY}
>       optimized ${WXWINDOWS_SHARED_LIBRARY} )
>So is it something general?

This is just setting a variable, so that later it can be used
in a LINK_LIBRARY command.  The only place this is used is
the LINK_* commands.

>When using generated makefiles, what version/setting is used, or how is decided if its debug/optimized/release?



That depends on the value of CMAKE_BUILD_TYPE.


-Bill