Skip to content

Commit

Permalink
Fix build with fmt 11
Browse files Browse the repository at this point in the history
For now, by disabling spdlog. Which is only required for a developer
build anyway.

To be looked at again once fmt 11 reaches Archlinux.
For issue #520
  • Loading branch information
iamsergio committed Jul 28, 2024
1 parent d8bd729 commit 75b9756
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,11 @@ if(NOT KDDockWidgets_NO_SPDLOG)
endif()
endif()

if(spdlog_FOUND AND fmt_FOUND)
# fmt 11 not supported yet, will get to it when it hits archlinux
if(spdlog_FOUND
AND fmt_FOUND
AND fmt_VERSION VERSION_LESS "11.0.0"
)
set(KDDockWidgets_HAS_SPDLOG TRUE)
else()
set(KDDockWidgets_HAS_SPDLOG FALSE)
Expand Down

0 comments on commit 75b9756

Please sign in to comment.