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")