diff --git a/cmake/compiler-env.cmake b/cmake/compiler-env.cmake index 055d49bc..a0eebc1e 100644 --- a/cmake/compiler-env.cmake +++ b/cmake/compiler-env.cmake @@ -102,6 +102,8 @@ momo_add_c_and_cxx_compile_options( endif() ########################################## +# Must be a dynamic runtime (/MD or /MDd) to enforce +# shared allocators between emulator and implementation set(CMAKE_MSVC_RUNTIME_LIBRARY MultiThreaded$<$:Debug>DLL)