vcpkg/ports/optional-lite/portfile.cmake

29 lines
732 B
CMake
Raw Normal View History

2019-05-28 16:49:40 +08:00
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO martinmoene/optional-lite
2021-11-05 01:42:10 +08:00
REF v3.5.0
SHA512 e578d391bc95e2a5302b4b02e0b17659026b2743fc5c1e16cd83f6227fa9b5990fa3fa23e808a4ea0f5bdafbf80834b0c462d563ab615907f113ee5a09ae88f5
2019-05-28 16:49:40 +08:00
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
2019-05-28 16:49:40 +08:00
OPTIONS
-DOPTIONAL_LITE_OPT_BUILD_TESTS=OFF
-DOPTIONAL_LITE_OPT_BUILD_EXAMPLES=OFF
)
vcpkg_cmake_install()
2019-05-28 16:49:40 +08:00
vcpkg_cmake_config_fixup(
CONFIG_PATH "lib/cmake/${PORT}"
2019-05-28 16:49:40 +08:00
)
file(REMOVE_RECURSE
"${CURRENT_PACKAGES_DIR}/debug"
"${CURRENT_PACKAGES_DIR}/lib"
2019-05-28 16:49:40 +08:00
)
file(INSTALL
"${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright
2019-05-28 16:49:40 +08:00
)