-
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I have temporarily gotten around this by adding...
...to the area I mentioned above, as per Fraser's suggestion in this post. It appears to be compiling and running as expected. I'm not super familiar with using CMake; is there an option that we can set more elegantly somewhere to change the original MDd option instead of overwriting it? Or is this just the way that CMake works? |
Beta Was this translation helpful? Give feedback.
I have temporarily gotten around this by adding...
set(CompilerFlags CMAKE_CXX_FLAGS CMAKE_CXX_FLAGS_DEBUG CMAKE_CXX_FLAGS_RELEASE CMAKE_C_FLAGS CMAKE_C_FLAGS_DEBUG CMAKE_C_FLAGS_RELEASE ) foreach(CompilerFlag ${CompilerFlags}) string(REPLACE "/MDd" "/MTd" ${CompilerFlag} "${${CompilerFlag}}") endforeach()
...to the area I mentioned above, as per Fraser's suggestion in this post. It appears to be compiling and running as expected.
I'm not super familiar with using CMake; is there an option that we can set more elegantly somewhere to change the original MDd option instead of overwriting it? Or is this just the way that CMake works?