I can't link assimp statically in debug mode with cmake :(( #5548
-
I want to link statically with assimp but for some reason I can't do it in debug mode. Release mode works but in debug I get weird errors like this: and this error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MTd_StaticDebug' doesn't match value 'MT_StaticRelease' How could I solve this? I also tried compiling dynamically linked only in debug but for some reason that didn't work either for me. This is my code: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
solved, apparently, this are the lines that solved it set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$CONFIG:Release:Release>") not set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreadedDebug$<$CONFIG:Debug:Debug>") like I had before |
Beta Was this translation helpful? Give feedback.
solved, apparently, this are the lines that solved it
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$CONFIG:Release:Release>")
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$CONFIG:Debug:Debug>")
not set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreadedDebug$<$CONFIG:Debug:Debug>") like I had before