mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-28 04:39:00 +08:00
a8e1b590c6
* Added new port for the HiGHS optimization library * Fixed formatting and added versions * Fixed sha hash * Updated port to exclude arm64 support * Update SHA * Added license to vcpkg.json Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com> * Use VERSION variable for portfile.cmake Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com> * Update SHA * Removed redundant differences in cmake patch * Update SHA * Improved pkconfig and thread support * Update SHA * Enable support for arm64 * Update SHA * Fixed linker errors for arm64-windows builds * Update SHA * Changed patch name, converted tab to spaces for consistency * Update SHA * Cleaned portfile, replaced pkgconfig patch with vcpkg command * Updated SHA * Updated fix-threads patch * Update SHA * Improved the threads patch * Update SHA --------- Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com> Co-authored-by: Luke Marshall <luke.marshall@microsoft.com>
26 lines
803 B
CMake
26 lines
803 B
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO ERGO-Code/HiGHS
|
|
REF "v${VERSION}"
|
|
SHA512 ce2003f7328d49e2292135b740204eb485c8c6694fa017c6604e6d4057913d5d5eea517561ffe4b7251b0fbe230bc8288ab6d91dd9432ffc96e792a1ce866424
|
|
HEAD_REF master
|
|
PATCHES
|
|
fix-hconfig-path.patch
|
|
fix-cmake-output.patch
|
|
fix-threads.patch
|
|
)
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
OPTIONS
|
|
-DFAST_BUILD=ON
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
vcpkg_fixup_pkgconfig()
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/highs")
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
file(COPY "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|