2023-01-05 06:27:58 +08:00
|
|
|
vcpkg_minimum_required(VERSION 2022-10-12) # for ${VERSION}
|
2019-02-27 07:18:43 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO mlpack/ensmallen
|
2023-01-05 06:27:58 +08:00
|
|
|
REF "${VERSION}"
|
2023-09-29 14:38:44 +08:00
|
|
|
SHA512 9cc058dcb777b7a59c361afcd02d2ce787b08c86a26aefc1d67c42658d67d7b62e8d7b5138c02912c182bc9b0e1e039c4036478985e12e2e35746853a169e067
|
2019-02-27 07:18:43 +08:00
|
|
|
HEAD_REF master
|
2023-01-05 06:27:58 +08:00
|
|
|
PATCHES
|
|
|
|
dependencies.patch
|
2019-02-27 07:18:43 +08:00
|
|
|
)
|
|
|
|
|
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)
|