diff --git a/CMakeLists.txt b/CMakeLists.txt index 2818845..d9d4aec 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,3 +10,8 @@ file(GLOB_RECURSE network_source_list "*.cpp" "*.hpp") set_property(TARGET OMP-Network PROPERTY SOURCES ${network_source_list}) set_property(TARGET OMP-Network PROPERTY POSITION_INDEPENDENT_CODE ON) + +# Force /MD, as debug CRT for malloc/free are incompatible with open.mp +if (MSVC) + set_property(TARGET OMP-Network PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreadedDLL") +endif() \ No newline at end of file