]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
cmake: minor Heimdal flavour detection fix
authorViktor Szakats <commit@vsz.me>
Wed, 8 Oct 2025 19:40:07 +0000 (21:40 +0200)
committerViktor Szakats <commit@vsz.me>
Wed, 8 Oct 2025 23:15:04 +0000 (01:15 +0200)
Do not detect Heimdal if a single `H` character appears in the vendor
string, require the full name: `Heimdal`.

Cherry-picked from #18932
Closes #18951

CMake/FindGSS.cmake

index aa640c3342ad9725bfda2425f8128f1cbc03cda1..398e38aa987c97f29be8b7976023a230f8e1481d 100644 (file)
@@ -164,7 +164,7 @@ if(NOT _gss_FOUND)  # Not found by pkg-config. Let us take more traditional appr
     if(_gss_configure_failed)
       set(GSS_FLAVOUR "Heimdal")  # most probably, should not really matter
     else()
-      if(_gss_vendor MATCHES "H|heimdal")
+      if(_gss_vendor MATCHES "Heimdal|heimdal")
         set(GSS_FLAVOUR "Heimdal")
       else()
         set(GSS_FLAVOUR "MIT")