diff options
author | Konstantin Kushnir <chpock@gmail.com> | 2018-11-27 17:12:35 +0200 |
---|---|---|
committer | Jay Satiro <raysatiro@yahoo.com> | 2018-11-29 02:05:21 -0500 |
commit | a39d8f7056c9ad4e75c82fa0939a9ae1e246d055 (patch) | |
tree | 963fd67b7530543567ca1675292c1afeb8392cbf /CMake | |
parent | 40ac6f1e50cd16894d640f604957fddc20ff73b9 (diff) | |
download | curl-a39d8f7056c9ad4e75c82fa0939a9ae1e246d055.tar.gz |
CMake: fix MIT/Heimdal Kerberos detection
- fix syntax error in FindGSS.cmake
- correct krb5 include directory. FindGSS exports
"GSS_INCLUDE_DIR" variable.
Closes https://github.com/curl/curl/pull/3316
Diffstat (limited to 'CMake')
-rw-r--r-- | CMake/FindGSS.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/CMake/FindGSS.cmake b/CMake/FindGSS.cmake index 7a637fc29..8a28f2fb6 100644 --- a/CMake/FindGSS.cmake +++ b/CMake/FindGSS.cmake @@ -68,7 +68,7 @@ if(NOT _GSS_FOUND) #not found by pkg-config. Let's take more traditional approac # should also work in an odd case when multiple directories are given string(STRIP "${_GSS_CFLAGS}" _GSS_CFLAGS) string(REGEX REPLACE " +-I" ";" _GSS_CFLAGS "${_GSS_CFLAGS}") - string(REGEX REPLACE " +-([^I][^ \\t;]*)" ";-\\1"_GSS_CFLAGS "${_GSS_CFLAGS}") + string(REGEX REPLACE " +-([^I][^ \\t;]*)" ";-\\1" _GSS_CFLAGS "${_GSS_CFLAGS}") foreach(_flag ${_GSS_CFLAGS}) if(_flag MATCHES "^-I.*") @@ -91,7 +91,7 @@ if(NOT _GSS_FOUND) #not found by pkg-config. Let's take more traditional approac # this script gives us libraries and link directories. Blah. We have to deal with it. string(STRIP "${_GSS_LIB_FLAGS}" _GSS_LIB_FLAGS) string(REGEX REPLACE " +-(L|l)" ";-\\1" _GSS_LIB_FLAGS "${_GSS_LIB_FLAGS}") - string(REGEX REPLACE " +-([^Ll][^ \\t;]*)" ";-\\1"_GSS_LIB_FLAGS "${_GSS_LIB_FLAGS}") + string(REGEX REPLACE " +-([^Ll][^ \\t;]*)" ";-\\1" _GSS_LIB_FLAGS "${_GSS_LIB_FLAGS}") foreach(_flag ${_GSS_LIB_FLAGS}) if(_flag MATCHES "^-l.*") |