[CMake] Visual Studio with static runtime

Philip Lowman philip at yhbt.com
Sat Jan 16 01:50:11 EST 2010


On Fri, Jan 15, 2010 at 1:21 PM, Dave Partyka <dave.partyka at kitware.com> wrote:
> I think you just change the appropriate flag in
> CMAKE_CXX_FLAGS_<Config_Type> variable to control this. By Default It uses
> the Dll runtime via the MD/MDd flags.
> See this table for the other variations of this flag.
> http://msdn.microsoft.com/en-us/library/abx4dbyh(VS.71).aspx

For tips on how to change your CMakeLists.txt, see also:
http://www.cmake.org/Wiki/CMake_FAQ#How_can_I_build_my_MSVC_application_with_a_static_runtime.3F

-- 
Philip Lowman


More information about the CMake mailing list