Skip to content

Commit

Permalink
[ampl-asl] Add supports expression (#23403)
Browse files Browse the repository at this point in the history
  • Loading branch information
autoantwort committed Mar 7, 2022
1 parent b25bcfc commit 7bb4b66
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 11 deletions.
13 changes: 6 additions & 7 deletions ports/ampl-asl/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,22 @@ 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
-DBUILD_MT_LIBS=OFF # CRT linkage uses C/CXX FLAGS in vcpkg
-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}")
17 changes: 14 additions & 3 deletions ports/ampl-asl/vcpkg.json
Original file line number Diff line number Diff line change
@@ -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
}
]
}
5 changes: 5 additions & 0 deletions versions/a-/ampl-asl.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "2a88fb5c85a975bf5c5b49b6d87224b25504553d",
"version-date": "2020-11-11",
"port-version": 3
},
{
"git-tree": "024e7d3399beb537eb371c85181e48f4db51a4b0",
"version-string": "2020-11-11",
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
},
"ampl-asl": {
"baseline": "2020-11-11",
"port-version": 2
"port-version": 3
},
"ampl-mp": {
"baseline": "2020-11-11",
Expand Down

0 comments on commit 7bb4b66

Please sign in to comment.