2020-04-24 12:40:56 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO odygrd/quill
|
2022-12-06 06:40:52 +08:00
|
|
|
REF v${VERSION}
|
2024-09-10 11:25:09 +08:00
|
|
|
SHA512 87a401590f10243135cb23c6f87eba8daec02f977f9b886bf8f3542c44c5c9d78e234508b52c1e5e2e7c97fb770e49a55317c34a0950ca9519c01bba947a22d8
|
2020-04-24 12:40:56 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
2024-08-15 12:32:48 +08:00
|
|
|
if(VCPKG_TARGET_IS_ANDROID)
|
|
|
|
set(ADDITIONAL_OPTIONS -DQUILL_NO_THREAD_NAME_SUPPORT=ON)
|
|
|
|
endif()
|
2020-10-31 05:51:26 +08:00
|
|
|
|
2024-08-15 12:32:48 +08:00
|
|
|
vcpkg_cmake_configure(SOURCE_PATH "${SOURCE_PATH}" OPTIONS ${ADDITIONAL_OPTIONS})
|
|
|
|
|
|
|
|
vcpkg_cmake_install()
|
|
|
|
|
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/quill)
|
|
|
|
|
|
|
|
if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug")
|
|
|
|
file(RENAME "${CURRENT_PACKAGES_DIR}/debug/pkgconfig" "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "release")
|
|
|
|
file(RENAME "${CURRENT_PACKAGES_DIR}/pkgconfig" "${CURRENT_PACKAGES_DIR}/lib/pkgconfig")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
|
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|