Skip to content

Commit

Permalink
Explicitly set triplet for MinGW
Browse files Browse the repository at this point in the history
  • Loading branch information
vijaiaeroastro committed Nov 25, 2024
1 parent 1133580 commit c38e1b3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit c38e1b3

Please sign in to comment.