From 43ec9622567a0094847086cfec703d6709f09b78 Mon Sep 17 00:00:00 2001 From: Pierre Ferran Date: Sun, 14 Apr 2024 14:57:59 -0400 Subject: [PATCH] Maybe this flag would work? --- backend/CMakeLists.txt | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) 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)