Hi, I'm trying write CMake files to generate VC++ project files which could support Debug_Static, Debug_Shared, Release_Static, Release_Shared for building libraries. I have two configuration type "DEBUG" and "RELEASE", and two build targets for static and dynamic build.
What I have below could only set compile flag "/MTd" and "/MDd" for both debug and release build, how could I set "/MT" and "/MD" for release build? ADD_LIBRARY (MYLIB STATIC src.cpp header.h } SET_TARGET_PROPERTIES( MYLIB PROPERTIES COMPILE_FLAGS "/MTd") ADD_LIBRARY (MYLIB_Shared SHARED src.cpp header.h } SET_TARGET_PROPERTIES( MYLIB_Shared PROPERTIES COMPILE_FLAGS "/MDd") Thanks a lot, Judy _______________________________________________ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake