[ampl-asl] Add supports expression (#23403)

This commit is contained in:
autoantwort 2022-03-07 20:11:41 +01:00 committed by GitHub
parent b25bcfcc2c
commit 7bb4b663f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 26 additions and 11 deletions

View File

@ -13,9 +13,8 @@ vcpkg_from_github(
install-targets.patch
)
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DBUILD_MCMODELLARGE=OFF
-DBUILD_DYNRT_LIBS=OFF # CRT linkage uses C/CXX FLAGS in vcpkg
@ -23,13 +22,13 @@ vcpkg_configure_cmake(
-DBUILD_CPP=ON
)
vcpkg_install_cmake()
vcpkg_cmake_install()
vcpkg_copy_pdbs()
vcpkg_fixup_cmake_targets(CONFIG_PATH share/unofficial-asl TARGET_PATH share/unofficial-asl)
vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-asl)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
# from ampl-mp license
file(INSTALL ${CURRENT_PORT_DIR}/copyright DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
file(INSTALL "${CURRENT_PORT_DIR}/copyright" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")

View File

@ -1,8 +1,19 @@
{
"name": "ampl-asl",
"version-string": "2020-11-11",
"port-version": 2,
"version-date": "2020-11-11",
"port-version": 3,
"description": "AMPL Solver Library",
"homepage": "https://github.com/ampl/asl",
"supports": "!uwp"
"license": null,
"supports": "!uwp & !(osx & arm64)",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "2a88fb5c85a975bf5c5b49b6d87224b25504553d",
"version-date": "2020-11-11",
"port-version": 3
},
{
"git-tree": "024e7d3399beb537eb371c85181e48f4db51a4b0",
"version-string": "2020-11-11",

View File

@ -66,7 +66,7 @@
},
"ampl-asl": {
"baseline": "2020-11-11",
"port-version": 2
"port-version": 3
},
"ampl-mp": {
"baseline": "2020-11-11",