mirror of
https://github.com/curl/curl.git
synced 2026-04-21 12:02:13 +03:00
cmake: fix version variable references in FindGSS
Assign the value of the variable instead of the name of the variable when detecting GSS version via `pkg-config` on old (?) CMake. (On recent CMake, there is an empty value in these variables.) Closes #14445
This commit is contained in:
parent
c2889a7b41
commit
a3155db43d
1 changed files with 2 additions and 2 deletions
|
|
@ -255,12 +255,12 @@ else()
|
|||
if(_GSS_MODULE_NAME STREQUAL _mit_modname OR _GSS_${_mit_modname}_VERSION) # _GSS_MODULE_NAME set since CMake 3.16
|
||||
set(GSS_FLAVOUR "MIT")
|
||||
if(NOT _GSS_VERSION) # for old CMake versions?
|
||||
set(_GSS_VERSION _GSS_${_mit_modname}_VERSION)
|
||||
set(_GSS_VERSION ${_GSS_${_mit_modname}_VERSION})
|
||||
endif()
|
||||
else()
|
||||
set(GSS_FLAVOUR "Heimdal")
|
||||
if(NOT _GSS_VERSION) # for old CMake versions?
|
||||
set(_GSS_VERSION _GSS_${_heimdal_modname}_VERSION)
|
||||
set(_GSS_VERSION ${_GSS_${_heimdal_modname}_VERSION})
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue