mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-03 07:11:48 +08:00
28 lines
830 B
CMake
28 lines
830 B
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO ERGO-Code/HiGHS
|
|
REF "v${VERSION}"
|
|
SHA512 9c8172fa22952859e1064d1823d327b51f83ff180b58153cd0a06ca6f756e0aa1538622de2bb5cee7caf5884e9a3cc9d492dd830a422f4cac63f884a4720c997
|
|
HEAD_REF master
|
|
PATCHES
|
|
fix-hconfig-path.patch
|
|
fix-compiler.patch
|
|
)
|
|
|
|
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")
|