diff --git a/CMakeLists.txt b/CMakeLists.txt index dc96588..f027140 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,6 +4,12 @@ project(ZMusic LANGUAGES C CXX ) +if (VCPKG_TOOLCHAIN) + if(VCPKG_TARGET_TRIPLET MATCHES "-static$") + set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$:Debug>") + endif() +endif() + list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake) include(CMakePackageConfigHelpers)