Skip to content
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion ports/spdlog/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,23 @@ vcpkg_from_github(

vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
FEATURES
benchmark SPDLOG_BUILD_BENCH
benchmark SPDLOG_BUILD_BENCH
wchar SPDLOG_WCHAR_SUPPORT
)

if(VCPKG_TARGET_IS_WINDOWS)
# configured in triplet file
if(NOT DEFINED SPDLOG_WCHAR_FILENAMES)
set(SPDLOG_WCHAR_FILENAMES OFF)
endif()
else()
Comment thread
luncliff marked this conversation as resolved.
Outdated
if("wchar" IN_LIST FEATURES)
message(FATAL_ERROR "Feature 'wchar' is for Windows.")
Comment thread
luncliff marked this conversation as resolved.
Outdated
elseif(SPDLOG_WCHAR_FILENAMES)
message(FATAL_ERROR "Build option 'SPDLOG_WCHAR_FILENAMES' is for Windows.")
endif()
endif()

string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" SPDLOG_BUILD_SHARED)

vcpkg_cmake_configure(
Expand All @@ -21,6 +35,7 @@ vcpkg_cmake_configure(
-DSPDLOG_FMT_EXTERNAL=ON
-DSPDLOG_INSTALL=ON
-DSPDLOG_BUILD_SHARED=${SPDLOG_BUILD_SHARED}
-DSPDLOG_WCHAR_FILENAMES=${SPDLOG_WCHAR_FILENAMES}
Comment thread
PhoebeHui marked this conversation as resolved.
)

vcpkg_cmake_install()
Expand Down
9 changes: 8 additions & 1 deletion ports/spdlog/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
{
"name": "spdlog",
"version-semver": "1.8.5",
"port-version": 2,
"port-version": 3,
"description": "Very fast, header only, C++ logging library",
"homepage": "https://github.com/gabime/spdlog",
"license": "MIT",
"dependencies": [
"fmt",
{
Expand All @@ -21,6 +22,12 @@
"dependencies": [
"benchmark"
]
},
"wchar": {
"description": "Build with wchar_t (Windows only)"
},
"wchar-filenames": {
"description": "Use std::wstring instead of std::string for file names (Windows only)"
Comment thread
luncliff marked this conversation as resolved.
Outdated
}
}
}
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -5766,7 +5766,7 @@
},
"spdlog": {
"baseline": "1.8.5",
"port-version": 2
"port-version": 3
},
"spectra": {
"baseline": "0.9.0",
Expand Down
5 changes: 5 additions & 0 deletions versions/s-/spdlog.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "789c184d34284ba526062ec6331657eab9a5b64c",
Comment thread
JackBoosY marked this conversation as resolved.
Outdated
"version-semver": "1.8.5",
"port-version": 3
},
{
"git-tree": "9aa80a12ad92e29cfc19df70b9fd615b4aa5997b",
"version-semver": "1.8.5",
Expand Down