2019-02-27 07:18:43 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO mlpack/ensmallen
|
2021-12-07 13:28:14 +08:00
|
|
|
REF bf42276c5a44eed31e5bacec95d166d01d65f9a4 #v2.18.1
|
|
|
|
SHA512 09f96b2f0e0bd34245c34ee727e633bbb3957c2ab8076cfac66f976ba4e327096e2e76fadcc729dfffe73b56348bcc14fa61e3bb59a7ca0e17221f8f4cd0d59c
|
2019-02-27 07:18:43 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
2021-07-14 04:15:39 +08:00
|
|
|
vcpkg_cmake_configure(
|
2021-12-07 13:28:14 +08:00
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2020-03-11 08:15:34 +08:00
|
|
|
OPTIONS
|
2020-10-09 14:31:35 +08:00
|
|
|
-DBUILD_TESTS=OFF
|
2019-02-27 07:18:43 +08:00
|
|
|
)
|
2021-07-14 04:15:39 +08:00
|
|
|
vcpkg_cmake_install()
|
2020-03-11 08:15:34 +08:00
|
|
|
|
2021-07-14 04:15:39 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/ensmallen)
|
2019-02-27 07:18:43 +08:00
|
|
|
|
2021-12-07 13:28:14 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
|
2019-02-27 07:18:43 +08:00
|
|
|
|
2021-07-14 04:15:39 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/COPYRIGHT.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|