On Mon, Nov 2, 2009 at 7:36 PM, Roger Dannenberg <r...@cs.cmu.edu> wrote:
> Tyler Roscoe wrote: > >> On Mon, Nov 02, 2009 at 06:32:19PM -0500, Roger Dannenberg wrote: >> >> >>> set_target_properties(mylib-static PROPERTIES CMAKE_C_FLAGS_DEBUG "/MTd") >>> >> >> > 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? > Looks like there is a patch in the tracker for this very feature. http://public.kitware.com/Bug/view.php?id=6493 Barring the above working, you might be able to adapt something from options #2 or #3 below. http://www.cmake.org/Wiki/CMake_FAQ#How_can_I_build_my_MSVC_application_with_a_static_runtime.3F -- Philip Lowman
_______________________________________________ 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