From 5338e2e3a33a1180ff9618b7025a9844971d7587 Mon Sep 17 00:00:00 2001 From: emufan4568 Date: Sat, 16 Jul 2022 19:52:40 +0300 Subject: [PATCH] vcpkg: Force static linkage on windows --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7ac1554a6..0d3d94d95 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -9,6 +9,11 @@ list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/externals/cmake-modul include(DownloadExternals) include(CMakeDependentOption) +# Enable static linking on windows platforms +if (WIN32) + set(VCPKG_TARGET_TRIPLET "x64-windows-static") +endif() + # Include vcpkg toolchain file set(CMAKE_TOOLCHAIN_FILE "${CMAKE_CURRENT_SOURCE_DIR}/externals/vcpkg/scripts/buildsystems/vcpkg.cmake" CACHE STRING "Vcpkg toolchain file")