From: Viktor Szakats Date: Wed, 7 Aug 2024 21:38:15 +0000 (+0200) Subject: cmake: fix version variable references in FindGSS X-Git-Tag: curl-8_10_0~329 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a3155db43da3fd8dc8a69d73b7fb03d1c61a477c;p=thirdparty%2Fcurl.git 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 --- diff --git a/CMake/FindGSS.cmake b/CMake/FindGSS.cmake index ac9403f94e..35687ab9d2 100644 --- a/CMake/FindGSS.cmake +++ b/CMake/FindGSS.cmake @@ -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()