diff --git a/CMakeLists.txt b/CMakeLists.txt index 8df95efb..131a0748 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -20,6 +20,9 @@ if (USE_PACKAGED_SUBMODULES) option(USE_INCLUDED_SSL "Use included libressl" ON) else() message("USE_PACKAGED_SUBMODULES is OFF") + if (CMAKE_GENERATOR MATCHES "MinGW") + set(VCPKG_TARGET_TRIPLET "x64-mingw") + endif () if (EXISTS "${CMAKE_SOURCE_DIR}/vcpkg/scripts/buildsystems/vcpkg.cmake") message("Using VCPKG Toolchain") set(CMAKE_TOOLCHAIN_FILE "${CMAKE_SOURCE_DIR}/vcpkg/scripts/buildsystems/vcpkg.cmake" CACHE STRING "Vcpkg toolchain file")