2019-07-18 15:15:56 +08:00
|
|
|
# header-only library
|
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO Neargye/nameof
|
2022-08-06 14:47:46 +08:00
|
|
|
REF v0.10.2
|
|
|
|
SHA512 1ec508378d12eb4a65da1bee8011302f65e78bbcab82aae716afc673665af5283a5aae5f1d0de85c7d6f59bb7268e02fc01b171f50de26bb86dc27c3b46097fa
|
2019-07-18 15:15:56 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
2022-08-06 14:47:46 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2019-07-18 15:15:56 +08:00
|
|
|
OPTIONS
|
|
|
|
-DNAMEOF_OPT_BUILD_EXAMPLES=OFF
|
|
|
|
-DNAMEOF_OPT_BUILD_TESTS=OFF
|
2021-02-04 03:43:20 +08:00
|
|
|
-DNAMEOF_OPT_INSTALL=ON
|
2019-07-18 15:15:56 +08:00
|
|
|
)
|
|
|
|
|
2022-08-06 14:47:46 +08:00
|
|
|
vcpkg_cmake_install()
|
2019-07-18 15:15:56 +08:00
|
|
|
|
2022-08-06 14:47:46 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
|
2019-07-18 15:15:56 +08:00
|
|
|
|
2022-08-06 14:47:46 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug" "${CURRENT_PACKAGES_DIR}/lib")
|
2019-07-18 15:15:56 +08:00
|
|
|
|
|
|
|
# Handle copyright
|
2022-08-06 14:47:46 +08:00
|
|
|
configure_file("${SOURCE_PATH}/LICENSE" "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright" COPYONLY)
|