override debug C flags in set_vs_runtime_macro
@@ -465,7 +465,7 @@ macro(conan_set_vs_runtime)
string(REPLACE "/MD" ${CONAN_LINK_RUNTIME} ${flag} "${${flag}}")
endif()
endforeach()
- foreach(flag CMAKE_CXX_FLAGS_DEBUG CMAKE_CXX_FLAGS_DEBUG)
+ foreach(flag CMAKE_C_FLAGS_DEBUG CMAKE_CXX_FLAGS_DEBUG)
if(DEFINED ${flag})
string(REPLACE "/MDd" ${CONAN_LINK_RUNTIME} ${flag} "${${flag}}")
endif()
@@ -531,7 +531,7 @@ macro(conan_set_vs_runtime)
string(REPLACE "/MD" "/MT" ${flag} "${${flag}}")
endif()
endforeach()
- foreach(flag CMAKE_CXX_FLAGS_DEBUG CMAKE_CXX_FLAGS_DEBUG)
+ foreach(flag CMAKE_C_FLAGS_DEBUG CMAKE_CXX_FLAGS_DEBUG)
if(DEFINED ${flag})
string(REPLACE "/MDd" "/MTd" ${flag} "${${flag}}")
endif()
