[spdlog] Support build shared library (#16089)

* [spdlog] Support build shared library

* update version

* update protifile

* update version
This commit is contained in:
JonLiu1993 2021-02-09 06:01:00 +08:00 committed by GitHub
parent 66ffe4d7e1
commit 8a95605a7b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 2 deletions

View File

@ -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

View File

@ -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()

View File

@ -5510,7 +5510,7 @@
},
"spdlog": {
"baseline": "1.8.0",
"port-version": 1
"port-version": 2
},
"spectra": {
"baseline": "0.9.0",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "83277d69ee0f37839d9f06c9fb658a3dd457e3eb",
"version-string": "1.8.0",
"port-version": 2
},
{
"git-tree": "51a19e55194fc03004bf1584612eb50cce1b4ec2",
"version-string": "1.8.0",