Allow building with static configurations

This commit is contained in:
Cacodemon345 2023-08-16 03:36:20 +06:00 committed by Christoph Oelckers
parent a036a16450
commit 0a7dc86a55

View file

@ -4,6 +4,12 @@ project(ZMusic
LANGUAGES C CXX LANGUAGES C CXX
) )
if (VCPKG_TOOLCHAIN)
if(VCPKG_TARGET_TRIPLET MATCHES "-static$")
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
endif()
endif()
list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake) list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)
include(CMakePackageConfigHelpers) include(CMakePackageConfigHelpers)