mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-21 23:00:36 +08:00
75bd2efe0d
* [many ports] 2019.09.14 Updates * Revert failure ports * Revert failure ports * Revert failure ports * [urdfdom] Fix find dependency console_bridge * Revert failure ports * [devil] Compatible with jasper 2.0.20 * [devil] Refix compatible with jasper functions declaration on different os * Update ports/alembic/CONTROL Co-authored-by: Phoebe <20694052+PhoebeHui@users.noreply.github.com> * Revert failure ports wangle * [azure-kinect-sensor-sdk] Fix build with matroska 1.6.2 * Revert failure ports * Revert failure ports * [urdfdom-headers] Fix include path in config.cmake file * upload patch * [urdfdom-headers] Refix include path in config.cmake file * [qt5-imageformats] Fix missing include math.h * [urdfdom-headers] Refix include path in config.cmake file * [qt5] Fix adding option PATCHES and other options when using qt_submodule_installation * Remove updated ports version * Commit suggestions * [libideviceactivation] revert Co-authored-by: JackBoosY <yuzaiyang@beyondsoft.com> Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com> Co-authored-by: Phoebe <20694052+PhoebeHui@users.noreply.github.com> Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
51 lines
1.6 KiB
CMake
51 lines
1.6 KiB
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO gabime/spdlog
|
|
REF 4a9ccf7e38e257feecce0c579a782741254eaeef # v1.8.0
|
|
SHA512 333f14704e0d0aa88abbe4ddd29aeb009de2f845440559d463f1b7f9c7da32b2fbdba0f2abf97ec2a5c479d2d62bb2220b21a1bc423d62fbbb93952cf829d532
|
|
HEAD_REF v1.x
|
|
)
|
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
benchmark SPDLOG_BUILD_BENCH
|
|
)
|
|
|
|
vcpkg_configure_cmake(
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
PREFER_NINJA
|
|
OPTIONS
|
|
${FEATURE_OPTIONS}
|
|
-DSPDLOG_FMT_EXTERNAL=ON
|
|
-DSPDLOG_INSTALL=ON
|
|
)
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
if(EXISTS "${CURRENT_PACKAGES_DIR}/lib/cmake/${PORT}")
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/${PORT})
|
|
elseif(EXISTS "${CURRENT_PACKAGES_DIR}/lib/${PORT}/cmake")
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/${PORT}/cmake)
|
|
endif()
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
# use vcpkg-provided fmt library (see also option SPDLOG_FMT_EXTERNAL above)
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/include/spdlog/fmt/bundled)
|
|
|
|
vcpkg_replace_string(${CURRENT_PACKAGES_DIR}/include/spdlog/fmt/fmt.h
|
|
"#if !defined(SPDLOG_FMT_EXTERNAL)"
|
|
"#if 0 // !defined(SPDLOG_FMT_EXTERNAL)"
|
|
)
|
|
|
|
vcpkg_replace_string(${CURRENT_PACKAGES_DIR}/include/spdlog/fmt/ostr.h
|
|
"#if !defined(SPDLOG_FMT_EXTERNAL)"
|
|
"#if 0 // !defined(SPDLOG_FMT_EXTERNAL)"
|
|
)
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/lib/spdlog
|
|
${CURRENT_PACKAGES_DIR}/debug/lib/spdlog
|
|
${CURRENT_PACKAGES_DIR}/debug/include)
|
|
|
|
# Handle copyright
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|