[vcpkg-ci-numactl] New ci port

This commit is contained in:
xiaozhuai 2026-06-11 21:36:57 +08:00 committed by Billy O'Neal
parent 7a9a0ff2cf
commit 401a6a38d0
4 changed files with 38 additions and 0 deletions

View File

@ -0,0 +1,9 @@
set(VCPKG_POLICY_EMPTY_PACKAGE enabled)
vcpkg_find_acquire_program(PKGCONFIG)
vcpkg_cmake_configure(
SOURCE_PATH "${CURRENT_PORT_DIR}/project"
OPTIONS "-DPKG_CONFIG_EXECUTABLE=${PKGCONFIG}"
)
vcpkg_cmake_build()

View File

@ -0,0 +1,11 @@
cmake_minimum_required(VERSION 3.16)
project(vcpkg-ci-numactl)
find_package(unofficial-numa CONFIG REQUIRED)
add_executable(vcpkg-ci-numactl main.cpp)
target_link_libraries(vcpkg-ci-numactl PRIVATE unofficial::numa::numa)
find_package(PkgConfig REQUIRED)
pkg_check_modules(numa IMPORTED_TARGET REQUIRED numa)
add_executable(vcpkg-ci-numactl-pc main.cpp)
target_link_libraries(vcpkg-ci-numactl-pc PRIVATE PkgConfig::numa)

View File

@ -0,0 +1,6 @@
#include <numa.h>
int main() {
if (numa_available() < 0) return 1;
return 0;
}

View File

@ -0,0 +1,12 @@
{
"name": "vcpkg-ci-numactl",
"version-string": "ci",
"description": "Validates numactl",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
"numactl"
]
}