2021-10-27 13:56:35 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO devernay/cminpack
|
|
|
|
REF v1.3.8
|
|
|
|
SHA512 0cab275074a31af69dbaf3ef6d41b20184c7cf9f33c78014a69ae7a022246fa79e7b4851341c6934ca1e749955b7e1096a40b4300a109ad64ebb1b2ea5d1d8ae
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
|
|
OPTIONS
|
|
|
|
-DBUILD_EXAMPLES=OFF
|
2021-10-29 09:10:49 +08:00
|
|
|
-DCMINPACK_LIB_INSTALL_DIR=lib
|
2023-03-29 01:53:24 +08:00
|
|
|
-DUSE_BLAS=OFF
|
2021-10-27 13:56:35 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_cmake_install()
|
2023-03-13 11:45:55 +08:00
|
|
|
vcpkg_cmake_config_fixup()
|
2021-10-29 09:10:49 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|
2021-10-27 13:56:35 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
|
|
|
|
2023-03-13 11:45:55 +08:00
|
|
|
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/CopyrightMINPACK.txt")
|