Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
16 changes: 15 additions & 1 deletion ports/spdlog/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,22 @@ vcpkg_from_github(

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

# configured in triplet file
if(NOT DEFINED SPDLOG_WCHAR_FILENAMES)
set(SPDLOG_WCHAR_FILENAMES OFF)
endif()
if(NOT VCPKG_TARGET_IS_WINDOWS)
if("wchar" IN_LIST FEATURES)
message(WARNING "Feature 'wchar' is only supported for Windows and has no effect on other platforms.")
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 +34,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.
-DSPDLOG_BUILD_EXAMPLE=OFF
)

Expand Down
6 changes: 5 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": 3,
"port-version": 4,
"description": "Very fast, header only, C++ logging library",
"homepage": "https://github.com/gabime/spdlog",
"license": "MIT",
"dependencies": [
"fmt",
{
Expand All @@ -21,6 +22,9 @@
"dependencies": [
"benchmark"
]
},
"wchar": {
"description": "Build with wchar_t (Windows only)"
}
}
}
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -5946,7 +5946,7 @@
},
"spdlog": {
"baseline": "1.8.5",
"port-version": 3
"port-version": 4
},
"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": "ac601a8d86ea3edc831933ad7e12eee11ac6e6db",
"version-semver": "1.8.5",
"port-version": 4
},
{
"git-tree": "f74643a7b8056237da08c41a653f5b0592870906",
"version-semver": "1.8.5",
Expand Down