Allow building with static configurations

This commit is contained in:
Cacodemon345 2023-08-16 03:36:20 +06:00 committed by GitHub
parent 052ed049b5
commit 6e9c01f5c2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,6 +4,12 @@ project(ZMusic
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)
include(CMakePackageConfigHelpers)