2019-06-09 10:10:26 +08:00
|
|
|
# header-only library
|
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO arximboldi/immer
|
2023-01-18 03:41:49 +08:00
|
|
|
REF "v${VERSION}"
|
2023-01-11 05:51:46 +08:00
|
|
|
SHA512 fc34242d36efdb9faa1f22ccc7591c1ace34c2b383e1266a290346baedc154e3d4a682d6dd5094460b75e123347194710072e996d19165cc5fd23c922fdfc4e8
|
2019-06-09 10:10:26 +08:00
|
|
|
HEAD_REF master
|
2023-01-18 03:41:49 +08:00
|
|
|
PATCHES
|
|
|
|
fix-ExportConfigVersion.patch # Upstream PR https://github.com/arximboldi/immer/pull/250 has been merged, this patch need to be removed in next update.
|
2019-06-09 10:10:26 +08:00
|
|
|
)
|
|
|
|
|
2021-08-19 08:17:34 +08:00
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
|
|
FEATURES
|
|
|
|
"docs" immer_BUILD_DOCS
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2019-06-09 10:10:26 +08:00
|
|
|
OPTIONS
|
|
|
|
-DENABLE_PYTHON=OFF
|
|
|
|
-DENABLE_GUILE=OFF
|
|
|
|
-DENABLE_BOOST_COROUTINE=OFF
|
2021-08-19 08:17:34 +08:00
|
|
|
-Dimmer_BUILD_TESTS=OFF
|
|
|
|
-Dimmer_BUILD_EXAMPLES=OFF
|
|
|
|
-Dimmer_BUILD_EXTRAS=OFF
|
|
|
|
${FEATURE_OPTIONS}
|
2019-06-09 10:10:26 +08:00
|
|
|
)
|
|
|
|
|
2021-08-19 08:17:34 +08:00
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/Immer)
|
2019-06-09 10:10:26 +08:00
|
|
|
|
2021-08-19 08:17:34 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug" "${CURRENT_PACKAGES_DIR}/lib")
|
2019-06-09 10:10:26 +08:00
|
|
|
|
|
|
|
# Handle copyright
|
2023-01-11 05:51:46 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|