diff --git a/backend/CMakeLists.txt b/backend/CMakeLists.txt index c104726..e8d4485 100644 --- a/backend/CMakeLists.txt +++ b/backend/CMakeLists.txt @@ -28,15 +28,17 @@ add_definitions(-DNAPI_VERSION=7) include_directories(${CMAKE_SOURCE_DIR}/extern/afv-native/include) +if(MSVC) + add_compile_options( + $<$:/MD> + $<$:/MDd> + $<$:/MD> + ) +endif() + add_library(trackaudio-afv SHARED src/main.cpp ${CMAKE_JS_SRC}) - - -if (WIN32) - set_property(TARGET trackaudio-afv PROPERTY - MSVC_RUNTIME_LIBRARY "MultiThreaded$<$:Release>DLL") -endif() # Find the required packages find_package(Threads REQUIRED)