set triplet before running vcpkg

This commit is contained in:
Lion Kortlepel
2023-12-05 14:47:46 +01:00
parent 567a770ed9
commit 84b06c94de

View File

@@ -1,4 +1,7 @@
if(NOT DEFINED CMAKE_TOOLCHAIN_FILE)
if (WIN32)
set(VCPKG_TARGET_TRIPLET x64-windows-static)
endif(WIN32)
if(NOT EXISTS ${CMAKE_SOURCE_DIR}/vcpkg/scripts/buildsystems/vcpkg.cmake)
find_package(Git)
if(Git_FOUND)
@@ -13,8 +16,5 @@ if(NOT DEFINED CMAKE_TOOLCHAIN_FILE)
endif()
endif()
set(CMAKE_TOOLCHAIN_FILE ${CMAKE_SOURCE_DIR}/vcpkg/scripts/buildsystems/vcpkg.cmake)
if (WIN32)
set(VCPKG_TARGET_TRIPLET x64-windows-static)
endif(WIN32)
endif()