2018-11-22 21:02:30 +08:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO muflihun/easyloggingpp
|
2021-10-30 01:10:16 +08:00
|
|
|
REF v9.97.0
|
|
|
|
SHA512 e45789edaf7a43ad6a73861840d24ccce9b9d6bba1aaacf93c6ac26ff7449957251d2ca322c9da85130b893332dd305b13a2499eaffc65ecfaaafa3e11f8d63d
|
2018-11-22 21:02:30 +08:00
|
|
|
HEAD_REF master
|
2023-05-14 03:32:59 +08:00
|
|
|
PATCHES
|
|
|
|
0001_add_cmake_options.patch
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
|
|
FEATURES
|
|
|
|
std-locking use_std_threads
|
|
|
|
thread-safe thread_safe
|
|
|
|
no-defaultfile no_default_logfile
|
2018-11-22 21:02:30 +08:00
|
|
|
)
|
|
|
|
|
2021-09-29 23:35:56 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2018-11-22 21:02:30 +08:00
|
|
|
OPTIONS
|
2023-05-14 03:32:59 +08:00
|
|
|
${FEATURE_OPTIONS}
|
2018-11-22 21:02:30 +08:00
|
|
|
-Dbuild_static_lib=ON
|
|
|
|
)
|
2021-09-29 23:35:56 +08:00
|
|
|
vcpkg_cmake_install()
|
2018-11-22 21:02:30 +08:00
|
|
|
|
2021-09-29 23:35:56 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
|
|
|
|
2021-10-30 01:10:16 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
2018-11-22 21:02:30 +08:00
|
|
|
|
2021-10-30 01:10:16 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|