Skip to content

Issue trying to build reactphysics3d as /MTd library. #260

Answered by trav3l3r
trav3l3r asked this question in Q&A
Discussion options

You must be logged in to vote

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?

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@trav3l3r
Comment options

Answer selected by trav3l3r
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant