Meta: Add vcpkg triplets for FreeBSD

This commit is contained in:
Undefine 2025-06-29 23:42:34 +02:00 committed by Andrew Kaster
commit 48403eab21
Notes: github-actions[bot] 2025-07-15 19:47:22 +00:00
6 changed files with 16 additions and 1 deletions

View file

@ -0,0 +1,5 @@
set(VCPKG_CMAKE_SYSTEM_NAME FreeBSD)
set(VCPKG_TARGET_ARCHITECTURE x64)
set(VCPKG_CRT_LINKAGE dynamic)
include(${CMAKE_CURRENT_LIST_DIR}/base.cmake)

View file

@ -0,0 +1,2 @@
include (${CMAKE_CURRENT_LIST_DIR}/../base-triplets/x64-freebsd.cmake)
include (${CMAKE_CURRENT_LIST_DIR}/debug.cmake)

View file

@ -0,0 +1,2 @@
include (${CMAKE_CURRENT_LIST_DIR}/../base-triplets/x64-freebsd.cmake)
include (${CMAKE_CURRENT_LIST_DIR}/distribution.cmake)

View file

@ -61,7 +61,9 @@ if (NOT DEFINED CACHE{VCPKG_TARGET_TRIPLET} AND NOT DEFINED CACHE{VCPKG_HOST_TRI
elseif (os_name MATCHES "Darwin|macOS")
set(os osx)
elseif (os_name MATCHES "Windows")
set (os windows)
set(os windows)
elseif (os_name MATCHES "FreeBSD")
set(os freebsd)
else()
message(FATAL_ERROR "Unable to automatically detect os name for vcpkg, please set VCPKG_TARGET_TRIPLET manually")
endif()

View file

@ -0,0 +1,2 @@
include (${CMAKE_CURRENT_LIST_DIR}/../base-triplets/x64-freebsd.cmake)
include (${CMAKE_CURRENT_LIST_DIR}/release.cmake)

View file

@ -0,0 +1,2 @@
include (${CMAKE_CURRENT_LIST_DIR}/../base-triplets/x64-freebsd.cmake)
include (${CMAKE_CURRENT_LIST_DIR}/sanitizer.cmake)