Skip to content

Commit

Permalink
Maybe this flag would work?
Browse files Browse the repository at this point in the history
  • Loading branch information
pierr3 committed Apr 14, 2024
1 parent b6eecbb commit 43ec962
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions backend/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,17 @@ add_definitions(-DNAPI_VERSION=7)

include_directories(${CMAKE_SOURCE_DIR}/extern/afv-native/include)

if(MSVC)
add_compile_options(
$<$<CONFIG:>:/MD>
$<$<CONFIG:Debug>:/MDd>
$<$<CONFIG:Release>:/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$<$<CONFIG:Release>:Release>DLL")
endif()

# Find the required packages
find_package(Threads REQUIRED)
Expand Down

0 comments on commit 43ec962

Please sign in to comment.