2019-05-28 16:24:16 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO martinmoene/optional-bare
|
|
|
|
REF v1.1.0
|
|
|
|
SHA512 0eed103c4e909991b596c0cd23d6206662e3ca71cd8148e27c19d8e071c2a16e18cc940a6cd4f8571510f5e64577157f94c561fb889330bb7a868af64c2f3aa0
|
|
|
|
)
|
|
|
|
|
2023-03-02 02:39:14 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2019-05-28 16:24:16 +08:00
|
|
|
OPTIONS
|
|
|
|
-DOPTIONAL_BARE_OPT_BUILD_TESTS=OFF
|
|
|
|
-DOPTIONAL_BARE_OPT_BUILD_EXAMPLES=OFF
|
|
|
|
)
|
|
|
|
|
2023-03-02 02:39:14 +08:00
|
|
|
vcpkg_cmake_install()
|
2019-05-28 16:24:16 +08:00
|
|
|
|
2023-03-02 02:39:14 +08:00
|
|
|
vcpkg_cmake_config_fixup(
|
2019-05-28 16:24:16 +08:00
|
|
|
CONFIG_PATH lib/cmake/${PORT}
|
|
|
|
)
|
|
|
|
|
|
|
|
file(REMOVE_RECURSE
|
2023-03-02 02:39:14 +08:00
|
|
|
"${CURRENT_PACKAGES_DIR}/debug"
|
|
|
|
"${CURRENT_PACKAGES_DIR}/lib"
|
2019-05-28 16:24:16 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
file(INSTALL
|
2023-03-02 02:39:14 +08:00
|
|
|
"${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright
|
2019-05-28 16:24:16 +08:00
|
|
|
)
|