mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-02-16 10:41:01 +00:00
set triplet before running vcpkg
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user