msvcrt - Why does this CMake project not set the appropriate MSVC runtime? -


i'm trying understand why libmysql cmake project configured /md , /mdd flags not generate appropriate visual studio 10 project files. appropriate cmake_ macros have been configured, shown:

macros

yet generated projects still showing unexpected runtime library settings:

enter image description here

is cmake gui reason unreliable, or possible option overriding crt settings?

i found cmake project libmysql has os-specific cmake file windows forces static runtimes used when generating visual studio solution:

 75   # force static runtime libraries  83   foreach(flag  84    cmake_c_flags_release cmake_c_flags_relwithdebinfo  85    cmake_c_flags_debug cmake_c_flags_debug_init  86    cmake_cxx_flags_release  cmake_cxx_flags_relwithdebinfo  87    cmake_cxx_flags_debug  cmake_cxx_flags_debug_init)  88    string(replace "/md"  "/mt" "${flag}" "${${flag}}")  89    set("${flag}" "${${flag}} /ehsc")  98   endforeach() 

Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -