mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-28 11:39:03 +08:00
05d0035210
* [nameof] Update to 0.10.2 * vcpkg x-add-version nameof * modernization * overwrite-version * license * overwrite-version * fix review * overwrite-version
27 lines
766 B
CMake
27 lines
766 B
CMake
# header-only library
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO Neargye/nameof
|
|
REF v0.10.2
|
|
SHA512 1ec508378d12eb4a65da1bee8011302f65e78bbcab82aae716afc673665af5283a5aae5f1d0de85c7d6f59bb7268e02fc01b171f50de26bb86dc27c3b46097fa
|
|
HEAD_REF master
|
|
)
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
OPTIONS
|
|
-DNAMEOF_OPT_BUILD_EXAMPLES=OFF
|
|
-DNAMEOF_OPT_BUILD_TESTS=OFF
|
|
-DNAMEOF_OPT_INSTALL=ON
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug" "${CURRENT_PACKAGES_DIR}/lib")
|
|
|
|
# Handle copyright
|
|
configure_file("${SOURCE_PATH}/LICENSE" "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright" COPYONLY)
|