[Bug 279731] devel/cmake: find_package(LLVM 18 REQUIRED CONFIG) fails to find llvm18-18.1.6

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Jun 16 04:10:34 BST 2024


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=279731

Jason E. Hale <jhale at FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|New                         |Closed
              Flags|maintainer-feedback?(kde at Fr |maintainer-feedback+
                   |eeBSD.org)                  |
                 CC|                            |jhale at FreeBSD.org
         Resolution|---                         |Not A Bug

--- Comment #1 from Jason E. Hale <jhale at FreeBSD.org> ---
>From ${LOCALBASE}/llvm18/lib/cmake/llvm/LLVMConfigVersion.cmake: "LLVM is
API-compatible only with matching major.minor versions and patch versions not
less than that requested."

So, requesting version 18 (18.0) will not satisfy this condition. Use 18.1 for
the version check instead.

See also:
https://cmake.org/cmake/help/latest/command/find_package.html#config-mode-version-selection

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the kde-freebsd mailing list