cmake: Fix detection of older Heimdal versions.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 2b92e6cbff)
r14.0.x
Slávek Banko 6 years ago
parent 0baa8c4086
commit 66c234237e
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -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 )

Loading…
Cancel
Save