cmake: Fix detection of older Heimdal versions.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/2/head
Slávek Banko 6 years ago
parent 4376be78af
commit 2b92e6cbff
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 COMMAND ${KRB5_CONFIG_EXECUTABLE} --libs
OUTPUT_VARIABLE KRB5_LIBRARIES OUTPUT_VARIABLE KRB5_LIBRARIES
ERROR_VARIABLE KRB5_LIBRARIES ERROR_VARIABLE KRB5_LIBRARIES
OUTPUT_STRIP_TRAILING_WHITESPACE
ERROR_STRIP_TRAILING_WHITESPACE
) )
execute_process( execute_process(
COMMAND ${KRB5_CONFIG_EXECUTABLE} --cflags COMMAND ${KRB5_CONFIG_EXECUTABLE} --cflags
OUTPUT_VARIABLE KRB5_INCLUDE_DIRS OUTPUT_VARIABLE KRB5_INCLUDE_DIRS
ERROR_VARIABLE KRB5_INCLUDE_DIRS ERROR_VARIABLE KRB5_INCLUDE_DIRS
OUTPUT_STRIP_TRAILING_WHITESPACE
ERROR_STRIP_TRAILING_WHITESPACE
) )
if( NOT "${KRB5_LIBRARIES}" STREQUAL "" ) if( NOT "${KRB5_LIBRARIES}" STREQUAL "" )
set( KRB5_FOUND 1 ) set( KRB5_FOUND 1 )

Loading…
Cancel
Save