mirror of
https://github.com/curl/curl.git
synced 2026-07-08 06:17:17 +03:00
cmake/FindGSS: fix comment, adjust custom flavor property name
- fix property name in comment. - rename `INTERFACE_CURL_GSS_FLAVOUR` -> `INTERFACE_CURL_GSS_FLAVOR` to match preferred usage. Follow-up to8aeefd0b35(subcommit) Follow-up to16f073ef49#16973 Closes #22013
This commit is contained in:
parent
0ffab25b6c
commit
43c685fa78
2 changed files with 8 additions and 8 deletions
|
|
@ -25,15 +25,15 @@
|
|||
#
|
||||
# Input variables:
|
||||
#
|
||||
# - `GSS_ROOT_DIR`: Absolute path to the root installation of GSS. (also supported as environment)
|
||||
# - `GSS_ROOT_DIR`: Absolute path to the root installation of GSS. (also supported as environment)
|
||||
#
|
||||
# Defines:
|
||||
#
|
||||
# - `GSS_FOUND`: System has a GSS library.
|
||||
# - `GSS_VERSION`: This is set to version advertised by pkg-config or read from manifest.
|
||||
# In case the library is found but no version info available it is set to "unknown"
|
||||
# - `CURL::gss`: GSS library target.
|
||||
# - `CURL_GSS_FLAVOUR`: Custom property. "GNU" or "MIT" if detected.
|
||||
# - `GSS_FOUND`: System has a GSS library.
|
||||
# - `GSS_VERSION`: This is set to version advertised by pkg-config or read from manifest.
|
||||
# In case the library is found but no version info available it is set to "unknown"
|
||||
# - `CURL::gss`: GSS library target.
|
||||
# - `INTERFACE_CURL_GSS_FLAVOR`: Custom property. "GNU" or "MIT" if detected.
|
||||
|
||||
set(_gnu_modname "gss")
|
||||
set(_mit_modname "mit-krb5-gssapi")
|
||||
|
|
@ -261,7 +261,7 @@ if(GSS_FOUND)
|
|||
if(NOT TARGET CURL::gss)
|
||||
add_library(CURL::gss INTERFACE IMPORTED)
|
||||
set_target_properties(CURL::gss PROPERTIES
|
||||
INTERFACE_CURL_GSS_FLAVOUR "${_gss_flavour}"
|
||||
INTERFACE_CURL_GSS_FLAVOR "${_gss_flavour}"
|
||||
INTERFACE_LIBCURL_PC_MODULES "${_gss_pc_requires}"
|
||||
INTERFACE_COMPILE_OPTIONS "${_gss_CFLAGS}"
|
||||
INTERFACE_INCLUDE_DIRECTORIES "${_gss_INCLUDE_DIRS}"
|
||||
|
|
|
|||
|
|
@ -1350,7 +1350,7 @@ if(CURL_USE_GSSAPI)
|
|||
if(GSS_FOUND)
|
||||
list(APPEND CURL_LIBS CURL::gss)
|
||||
|
||||
get_target_property(_gss_flavour CURL::gss INTERFACE_CURL_GSS_FLAVOUR)
|
||||
get_target_property(_gss_flavour CURL::gss INTERFACE_CURL_GSS_FLAVOR)
|
||||
if(_gss_flavour STREQUAL "GNU")
|
||||
set(HAVE_GSSGNU 1)
|
||||
elseif(GSS_VERSION) # MIT
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue