2020-04-17 01:19:19 +08:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2020-04-16 13:57:29 +08:00
|
|
|
|
2020-04-24 18:04:26 +08:00
|
|
|
if(VCPKG_TARGET_IS_LINUX)
|
|
|
|
message("Warning: cppcoro requires libc++ and Clang on Linux. See https://github.com/microsoft/vcpkg/pull/10693#issuecomment-610394650.")
|
|
|
|
endif()
|
|
|
|
|
2020-04-04 20:36:38 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
2020-04-10 17:17:04 +08:00
|
|
|
REPO lewissbaker/cppcoro
|
2022-10-28 10:28:37 +08:00
|
|
|
REF 391215262bd40d68ac6534810164131f5f9eb148 #2022-10-25
|
|
|
|
SHA512 22372a0385d6628e81d44cb3096186f7f79f53dff7786815546bfe6d8e1f5af4eae769c6b23e7d18aa123105418780d022239ebd48d25237fe6face9b74e42e8
|
2020-04-04 20:36:38 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
2022-10-28 10:28:37 +08:00
|
|
|
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt"
|
|
|
|
DESTINATION "${SOURCE_PATH}"
|
2020-04-10 17:17:04 +08:00
|
|
|
)
|
|
|
|
|
2022-10-28 10:28:37 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2020-04-04 20:36:38 +08:00
|
|
|
OPTIONS
|
|
|
|
-DBUILD_TESTING=False
|
|
|
|
)
|
2022-10-28 10:28:37 +08:00
|
|
|
vcpkg_cmake_install()
|
2020-04-04 20:36:38 +08:00
|
|
|
|
2022-10-28 10:28:37 +08:00
|
|
|
vcpkg_cmake_config_fixup()
|
2020-04-24 18:04:26 +08:00
|
|
|
|
2022-10-28 10:28:37 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE.txt"
|
|
|
|
DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}"
|
2020-04-04 20:36:38 +08:00
|
|
|
RENAME copyright
|
|
|
|
)
|
2020-04-07 22:47:29 +08:00
|
|
|
vcpkg_copy_pdbs()
|
2020-04-04 20:36:38 +08:00
|
|
|
|
2022-10-28 10:28:37 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|