2019-05-10 14:05:40 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO emilk/loguru
|
2020-01-30 05:52:30 +08:00
|
|
|
REF 9c2fea0d4530657f23259be4132f8101c98b579e #v2.1.0
|
|
|
|
SHA512 49eebf8648f9d29273af76dca0a4e49155daa3664e98979df005e64eb0fa9f4eeb4228245327d469772c51076571acbe39a644eba531444d8676d9709a7e3914
|
2019-05-10 14:05:40 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
2020-01-30 05:52:30 +08:00
|
|
|
if(VCPKG_TARGET_IS_WINDOWS)
|
|
|
|
file(INSTALL ${SOURCE_PATH}/loguru.hpp DESTINATION ${CURRENT_PACKAGES_DIR}/include/loguru)
|
2020-03-11 08:06:56 +08:00
|
|
|
file(INSTALL ${SOURCE_PATH}/loguru.cpp DESTINATION ${CURRENT_PACKAGES_DIR}/include/loguru)
|
2020-01-30 05:52:30 +08:00
|
|
|
endif()
|
|
|
|
|
|
|
|
if(VCPKG_TARGET_IS_LINUX OR VCPKG_TARGET_IS_OSX)
|
|
|
|
configure_file(${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt ${SOURCE_PATH}/CMakeLists.txt COPYONLY)
|
|
|
|
configure_file(${CMAKE_CURRENT_LIST_DIR}/loguruConfig.cmake.in ${SOURCE_PATH}/loguruConfig.cmake.in COPYONLY)
|
|
|
|
|
2022-04-09 06:23:48 +08:00
|
|
|
vcpkg_check_features(
|
|
|
|
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
|
|
FEATURES
|
|
|
|
fmt BUILD_WITH_FMT
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2020-01-30 05:52:30 +08:00
|
|
|
OPTIONS_DEBUG
|
|
|
|
-DINSTALL_HEADERS=OFF
|
2022-04-09 06:23:48 +08:00
|
|
|
OPTIONS
|
|
|
|
${FEATURE_OPTIONS}
|
2020-01-30 05:52:30 +08:00
|
|
|
)
|
|
|
|
|
2022-04-09 06:23:48 +08:00
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_cmake_config_fixup()
|
2020-01-30 05:52:30 +08:00
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
endif()
|
|
|
|
|
|
|
|
file(INSTALL ${CMAKE_CURRENT_LIST_DIR}/copyright DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
|