2020-11-12 12:55:11 -08:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO ampl/asl
|
|
|
|
REF 934d34719c8a620fcf16ae5a3c00c326eb22e748
|
|
|
|
SHA512 b6fcb3dcb53a53d975666db1643d7ea518246e8fb6745621ce4b63de4393f7767844e9241baa6fdf1a45c241a9aa0866844c47deec0020313278128cccff6869
|
|
|
|
HEAD_REF master
|
|
|
|
PATCHES
|
|
|
|
workaround-msvc-optimizer-ice.patch
|
|
|
|
fix-crt-linkage.patch # CRT linkage uses C/CXX FLAGS in vcpkg
|
|
|
|
install-extra-headers.patch
|
|
|
|
install-targets.patch
|
|
|
|
)
|
|
|
|
|
2022-03-07 20:11:41 +01:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2020-11-12 12:55:11 -08:00
|
|
|
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
|
|
|
|
)
|
|
|
|
|
2022-03-07 20:11:41 +01:00
|
|
|
vcpkg_cmake_install()
|
2020-11-12 12:55:11 -08:00
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2022-03-07 20:11:41 +01:00
|
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-asl)
|
2020-11-12 12:55:11 -08:00
|
|
|
|
2022-03-07 20:11:41 +01:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2020-11-12 12:55:11 -08:00
|
|
|
|
|
|
|
# from ampl-mp license
|
2022-03-07 20:11:41 +01:00
|
|
|
file(INSTALL "${CURRENT_PORT_DIR}/copyright" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|