diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/highs | |
Diffstat (limited to 'vcpkg/ports/highs')
| -rw-r--r-- | vcpkg/ports/highs/portfile.cmake | 25 | ||||
| -rw-r--r-- | vcpkg/ports/highs/vcpkg.json | 18 |
2 files changed, 43 insertions, 0 deletions
diff --git a/vcpkg/ports/highs/portfile.cmake b/vcpkg/ports/highs/portfile.cmake new file mode 100644 index 0000000..c819b22 --- /dev/null +++ b/vcpkg/ports/highs/portfile.cmake @@ -0,0 +1,25 @@ +vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO ERGO-Code/HiGHS
+ REF "v${VERSION}"
+ SHA512 60cafecee1aaf299c4d43238238310ae3c90aec3edb113c0bcb77c97131ab6040b9a965bf62d62eb47893dd9ccaf56ba459c789d54f2be1abd4f6a71d35e4f96
+ HEAD_REF master
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ -DFAST_BUILD=ON
+ -DBUILD_TESTING=OFF
+ -DBUILD_EXAMPLES=OFF
+ -DCMAKE_REQUIRE_FIND_PACKAGE_ZLIB=ON
+)
+
+vcpkg_cmake_install()
+vcpkg_fixup_pkgconfig()
+vcpkg_copy_tools(TOOL_NAMES highs AUTO_CLEAN)
+
+vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/highs")
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.txt")
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
diff --git a/vcpkg/ports/highs/vcpkg.json b/vcpkg/ports/highs/vcpkg.json new file mode 100644 index 0000000..6b54dab --- /dev/null +++ b/vcpkg/ports/highs/vcpkg.json @@ -0,0 +1,18 @@ +{ + "name": "highs", + "version": "1.12.0", + "description": "High performance library to solve linear, mixed-integer, and convex quadratic optimization problems.", + "homepage": "https://highs.dev", + "license": "MIT", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + }, + "zlib" + ] +} |