From 8a95605a7b757d7a66f4f6e972780e2eaf62d67d Mon Sep 17 00:00:00 2001 From: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com> Date: Tue, 9 Feb 2021 06:01:00 +0800 Subject: [spdlog] Support build shared library (#16089) * [spdlog] Support build shared library * update version * update protifile * update version --- ports/spdlog/CONTROL | 2 +- ports/spdlog/portfile.cmake | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'ports') diff --git a/ports/spdlog/CONTROL b/ports/spdlog/CONTROL index c924d2b38..5b0271b9e 100644 --- a/ports/spdlog/CONTROL +++ b/ports/spdlog/CONTROL @@ -1,6 +1,6 @@ Source: spdlog Version: 1.8.0 -Port-Version: 1 +Port-Version: 2 Homepage: https://github.com/gabime/spdlog Description: Very fast, header only, C++ logging library Build-Depends: fmt diff --git a/ports/spdlog/portfile.cmake b/ports/spdlog/portfile.cmake index 78914448d..30a41fcea 100644 --- a/ports/spdlog/portfile.cmake +++ b/ports/spdlog/portfile.cmake @@ -11,6 +11,8 @@ vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS benchmark SPDLOG_BUILD_BENCH ) +string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" SPDLOG_BUILD_SHARED) + vcpkg_configure_cmake( SOURCE_PATH ${SOURCE_PATH} PREFER_NINJA @@ -18,6 +20,7 @@ vcpkg_configure_cmake( ${FEATURE_OPTIONS} -DSPDLOG_FMT_EXTERNAL=ON -DSPDLOG_INSTALL=ON + -DSPDLOG_BUILD_SHARED=${SPDLOG_BUILD_SHARED} ) vcpkg_install_cmake() -- cgit v1.2.3