<div class="gmail_quote">On Mon, Nov 2, 2009 at 7:36 PM, Roger Dannenberg <span dir="ltr"><<a href="mailto:rbd@cs.cmu.edu">rbd@cs.cmu.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">Tyler Roscoe wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Mon, Nov 02, 2009 at 06:32:19PM -0500, Roger Dannenberg wrote:<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
set_target_properties(mylib-static PROPERTIES CMAKE_C_FLAGS_DEBUG "/MTd")<br>
</blockquote>
<br>
</blockquote></div>
Thanks again. COMPILE_FLAGS seems to pass target-specific flags and overrides CMAKE_C_FLAGS_<config>, but COMPILE_FLAGS_<config> doesn't do anything. I looked at the code in cmLocalVisualStudio7Generator.cxx and found where it adds COMPILE_FLAGS, but I don't see anything that would support flags that are both configuration-specific and target-specific. I hope I'm missing something. Any other ideas?<br>
</blockquote><div><br>Looks like there is a patch in the tracker for this very feature.<br><a href="http://public.kitware.com/Bug/view.php?id=6493">http://public.kitware.com/Bug/view.php?id=6493</a><br><br>Barring the above working, you might be able to adapt something from options #2 or #3 below.<br>
<a href="http://www.cmake.org/Wiki/CMake_FAQ#How_can_I_build_my_MSVC_application_with_a_static_runtime.3F">http://www.cmake.org/Wiki/CMake_FAQ#How_can_I_build_my_MSVC_application_with_a_static_runtime.3F</a><br clear="all">
</div></div><br>-- <br>Philip Lowman<br>