[numcpp] change boost dependencies to a feature (#39384)

This commit is contained in:
Cheney Wang 2024-06-19 23:14:14 -07:00 committed by GitHub
parent 0ae1da11b0
commit cef0b9e6ab
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 29 additions and 12 deletions

View File

@ -7,8 +7,15 @@ vcpkg_from_github(
HEAD_REF master
)
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
INVERTED_FEATURES
boost NUMCPP_NO_USE_BOOST
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
${FEATURE_OPTIONS}
)
vcpkg_cmake_install()

View File

@ -1,21 +1,11 @@
{
"name": "numcpp",
"version": "2.12.1",
"port-version": 1,
"port-version": 2,
"description": "C++ implementation of the Python Numpy library",
"homepage": "https://dpilger26.github.io/NumCpp",
"license": "MIT",
"dependencies": [
"boost-algorithm",
"boost-date-time",
"boost-endian",
"boost-integer",
"boost-log",
"boost-math",
"boost-predef",
"boost-python",
"boost-random",
"boost-type-traits",
{
"name": "vcpkg-cmake",
"host": true
@ -26,6 +16,21 @@
}
],
"features": {
"boost": {
"description": "Enable use boost",
"dependencies": [
"boost-algorithm",
"boost-date-time",
"boost-endian",
"boost-integer",
"boost-log",
"boost-math",
"boost-predef",
"boost-python",
"boost-random",
"boost-type-traits"
]
},
"python": {
"description": "Interacting with Python with pybind11 interface",
"dependencies": [

View File

@ -6262,7 +6262,7 @@
},
"numcpp": {
"baseline": "2.12.1",
"port-version": 1
"port-version": 2
},
"nuspell": {
"baseline": "5.1.4",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "e82e792de63955399c5b96c8ceaef6e66eb6230a",
"version": "2.12.1",
"port-version": 2
},
{
"git-tree": "300dfe4a76995143213ee1c14076a13c597f3bea",
"version": "2.12.1",