The CXX_FLAGS part seems to work (I needed the LINK_FLAGS_RELEASE), but I also need to include a library (through target_link_libraries) if and only if I am building a release version. Is that possible?<br><br>Thanks!<br><br>
<div class="gmail_quote">On Mon, Jun 7, 2010 at 2:50 PM, Tyler Roscoe <span dir="ltr"><<a href="mailto:tyler@cryptio.net">tyler@cryptio.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">On Mon, Jun 07, 2010 at 02:43:35PM -0300, Felipe Sodré Silva wrote:<br>
> I need to write a CMakeLists file to generate a VS 2005 project in which I<br>
> can have different project settings for Debug and Release configurations.<br>
><br>
> For example, I need to have a set_target_properties directive for Release<br>
> builds, but not for Debug builds. Is it possible to write such a CMakeLists<br>
> that does this?<br>
<br>
</div>Depends on what property/variable you're trying to set. Many of the<br>
interesting ones (e.g. CXX_FLAGS) have configuration-specific variants<br>
(e.g. CXX_FLAGS_RELEASE, CXX_FLAGS_RELEASE).<br>
<font color="#888888"><br>
tyler<br>
</font></blockquote></div><br>