For suggestions re. how to do /MT see the FAQ http://www.cmake.org/Wiki/CMake_FAQ#How_can_I_build_my_MSVC_application_with_a_static_runtime.3F
For COMPILE_FLAGS_<CONFIG> if you still need it, see this bug report. There is a patch there although I've never tried it before. http://www.cmake.org/Bug/view.php?id=6493 2009/11/21 "Sören Freudiger" <muffmo...@gmx.de>: > Hello > I'm in big trouble. I cannot change the cxx compile flags as I want. > > binary project for VS 2008 - example: > ... > ADD_EXECUTABLE( project ${source_files} ) > SET_TARGET_PROPERTIES(project PROPERTIES COMPILE_FLAGS_DEBUG "/MTd") > SET_TARGET_PROPERTIES(project PROPERTIES COMPILE_FLAGS_RELEASE "/MT") > -> the resulting flag in my project is still /MD for ALL configrations > > changing the flag like: > ADD_EXECUTABLE( project ${source_files} ) > SET_TARGET_PROPERTIES(project PROPERTIES COMPILE_FLAGS "/MT") > -> leads to /MT in my project file for ALL configurations > > but this would be only a sucking workaround and I really need to have: > /MT for release and /MTd for debug > > I also tried this one: > ADD_EXECUTABLE( project ${source_files} ) > SET_TARGET_PROPERTIES(project PROPERTIES COMPILE_FLAGS "/MT") > SET_TARGET_PROPERTIES(serial PROPERTIES COMPILE_FLAGS_DEBUG "/MTd") > SET_TARGET_PROPERTIES(serial PROPERTIES COMPILE_FLAGS_RELEASE "/MT") > -> still all configs have /MT only > > I think the problem is the predefined CXX_FLAG of CMake "/MD" > Adding "/MT" overwrites the "/MD" but adding different flags for other > configurations doesn't has any effects. > > What can I do? Any clue? > > Best, > SirAnn > > > > -- > GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT! > Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01 > _______________________________________________ > 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 > -- 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