]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
cmake/FindGSS: drop wrong header check for GNU GSS
authorViktor Szakats <commit@vsz.me>
Fri, 10 Oct 2025 04:37:45 +0000 (06:37 +0200)
committerViktor Szakats <commit@vsz.me>
Fri, 10 Oct 2025 17:47:08 +0000 (19:47 +0200)
GNU GSS offers `gss.h`; do not check for `gssapi.h`. `gssapi.h`
was originally published by Heimdal, and later MIT Kerberos also added it
for Heimdal compatibility.

Closes #18993

CMake/FindGSS.cmake

index 21d756c2bcc678379a2040c520edf06dc819e49e..6bb5dac1b2c92e10f1d2f311f3e2bd280596b8cf 100644 (file)
@@ -154,9 +154,7 @@ if(NOT _gss_FOUND)  # Not found by pkg-config. Let us take more traditional appr
         set(GSS_FLAVOUR "MIT")
       endif()
     else()
-      # I am not convinced if this is the right way but this is what autotools do at the moment
-      find_path(_gss_INCLUDE_DIRS NAMES "gssapi.h" HINTS ${_gss_root_hints} PATH_SUFFIXES "include" "inc")
-      find_path(_gss_INCLUDE_DIRS NAMES "gss.h"    HINTS ${_gss_root_hints} PATH_SUFFIXES "include")
+      find_path(_gss_INCLUDE_DIRS NAMES "gss.h" HINTS ${_gss_root_hints} PATH_SUFFIXES "include")
 
       if(_gss_INCLUDE_DIRS)
         set(GSS_FLAVOUR "GNU")