summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2019-06-05 01:11:35 +0200
committerSlávek Banko <slavek.banko@axis.cz>2019-06-05 01:11:35 +0200
commit2b92e6cbff56dd8ddaed72300b4cdee15d49d288 (patch)
treeb6c7d09e96562188ee037ecba54bbbfad1f07121
parent4376be78af3a0a44f6cbc3a9422d6388f68eac01 (diff)
downloadkerberostray-2b92e6cbff56dd8ddaed72300b4cdee15d49d288.tar.gz
kerberostray-2b92e6cbff56dd8ddaed72300b4cdee15d49d288.zip
cmake: Fix detection of older Heimdal versions.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
-rw-r--r--ConfigureChecks.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
index ea2b03d..717147f 100644
--- a/ConfigureChecks.cmake
+++ b/ConfigureChecks.cmake
@@ -50,11 +50,15 @@ if( NOT KRB5_FOUND)
COMMAND ${KRB5_CONFIG_EXECUTABLE} --libs
OUTPUT_VARIABLE KRB5_LIBRARIES
ERROR_VARIABLE KRB5_LIBRARIES
+ OUTPUT_STRIP_TRAILING_WHITESPACE
+ ERROR_STRIP_TRAILING_WHITESPACE
)
execute_process(
COMMAND ${KRB5_CONFIG_EXECUTABLE} --cflags
OUTPUT_VARIABLE KRB5_INCLUDE_DIRS
ERROR_VARIABLE KRB5_INCLUDE_DIRS
+ OUTPUT_STRIP_TRAILING_WHITESPACE
+ ERROR_STRIP_TRAILING_WHITESPACE
)
if( NOT "${KRB5_LIBRARIES}" STREQUAL "" )
set( KRB5_FOUND 1 )