2021-02-20 05:02:46 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO Naios/continuable
|
2023-10-03 11:50:10 +08:00
|
|
|
REF "${VERSION}"
|
|
|
|
SHA512 069b1fe37d5dd3495639942af40b9d5fe90408ee0f92f61e85c8aab3e1132300eb75df216a84595cb05c35e0fcb1b789fda4dae3fd2b263ac70910f5374536cc
|
2021-02-20 05:02:46 +08:00
|
|
|
HEAD_REF master
|
|
|
|
PATCHES
|
|
|
|
fix-cmakelists.patch
|
|
|
|
)
|
|
|
|
|
2022-11-10 04:50:53 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2021-02-20 05:02:46 +08:00
|
|
|
OPTIONS
|
|
|
|
-DCTI_CONTINUABLE_WITH_INSTALL=ON
|
|
|
|
-DCTI_CONTINUABLE_WITH_TESTS=OFF
|
|
|
|
-DCTI_CONTINUABLE_WITH_EXAMPLES=OFF
|
|
|
|
-DCTI_CONTINUABLE_WITH_BENCHMARKS=OFF
|
|
|
|
-DCTI_CONTINUABLE_WITH_NO_EXCEPTIONS=OFF
|
|
|
|
-DCTI_CONTINUABLE_WITH_UNHANDLED_EXCEPTIONS=ON
|
|
|
|
-DCTI_CONTINUABLE_WITH_EXPERIMENTAL_COROUTINE=ON
|
|
|
|
-DCTI_CONTINUABLE_WITH_CPP_LATEST=ON # requires cxx_std_17
|
|
|
|
)
|
2022-11-10 04:50:53 +08:00
|
|
|
vcpkg_cmake_install()
|
2021-02-20 05:02:46 +08:00
|
|
|
vcpkg_copy_pdbs()
|
2022-11-10 04:50:53 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
|
2021-02-20 05:02:46 +08:00
|
|
|
|
2022-11-10 04:50:53 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib"
|
|
|
|
"${CURRENT_PACKAGES_DIR}/debug"
|
2021-02-20 05:02:46 +08:00
|
|
|
)
|