fmt: conflicts llvm@21: when @:11.0 (#49965)

* fmt: conflicts llvm@21: when @:11.0

* Update var/spack/repos/builtin/packages/fmt/package.py

Co-authored-by: Mikael Simberg <mikael.simberg@iki.fi>

---------

Co-authored-by: Mikael Simberg <mikael.simberg@iki.fi>
This commit is contained in:
Wouter Deconinck 2025-04-14 08:23:31 -05:00 committed by GitHub
parent ebef5f75fb
commit bc5b57dca9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -79,6 +79,8 @@ class Fmt(CMakePackage):
# (https://github.com/fmtlib/fmt/issues/3028)
conflicts("cxxstd=17", when="@9.0.0%intel")
conflicts("cxxstd=17", when="@9.0.0%nvhpc")
# clang-21 requires fmt-11.1.0 (https://github.com/fmtlib/fmt/pull/4187)
conflicts("%[virtuals=cxx] llvm@21:", when="@:11.0")
# Use CMAKE_CXX_STANDARD to define C++ flag, as in later versions
patch("fmt-use-cmake-cxx-standard_3.0.0.patch", when="@3.0.0")