vcpkg/ports/caf/portfile.cmake

36 lines
1.1 KiB
CMake
Raw Normal View History

2018-03-21 16:22:29 +08:00
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO actor-framework/actor-framework
2023-10-04 12:08:27 +08:00
REF "${VERSION}"
SHA512 496bca714b3d84dafe155f775229e1b6190aae092ab82f8c098af4b0268cd565b980624e93436f5ccba34bac350c62a03ff46b9bddaa1c9bc646d78a2338c53a
2024-09-19 03:25:01 +08:00
HEAD_REF main
PATCHES
fix_dependency.patch
fix_cxx17.patch
2018-03-21 16:22:29 +08:00
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
2018-03-21 16:22:29 +08:00
OPTIONS
-DCAF_ENABLE_CURL_EXAMPLES=OFF
-DCAF_ENABLE_PROTOBUF_EXAMPLES=OFF
-DCAF_ENABLE_QT6_EXAMPLES=OFF
-DCAF_ENABLE_RUNTIME_CHECKS=OFF
-DCAF_ENABLE_ACTOR_PROFILER=OFF
-DCAF_ENABLE_EXAMPLES=OFF
-DCAF_ENABLE_TESTING=OFF
-DCAF_ENABLE_IO_MODULE=ON
-DCAF_ENABLE_EXCEPTIONS=ON
2018-03-21 16:22:29 +08:00
)
vcpkg_cmake_install()
2018-03-21 16:22:29 +08:00
vcpkg_cmake_config_fixup(PACKAGE_NAME CAF CONFIG_PATH lib/cmake/CAF)
2018-03-21 16:22:29 +08:00
vcpkg_copy_pdbs()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
2024-09-19 03:25:01 +08:00
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/include/caf/internal")
2024-06-15 02:51:31 +08:00
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")