Fix heimdal detection on multiarch systems

in case the pkg-config file is not available.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/5/head
Slávek Banko 6 years ago
parent 1ea2efad30
commit 582c8f0123
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -26,6 +26,18 @@ if( WITH_GCC_VISIBILITY )
endif( WITH_GCC_VISIBILITY )
##### get the system's default path for libraries
tde_save_and_set( CMAKE_INSTALL_PREFIX "/usr" )
include( GNUInstallDirs OPTIONAL )
if( CMAKE_INSTALL_LIBDIR )
set( SYSTEM_LIBDIR "${CMAKE_INSTALL_LIBDIR}" )
else( )
set( SYSTEM_LIBDIR "lib${LIB_SUFFIX}" )
endif( )
tde_restore( CMAKE_INSTALL_PREFIX )
##### check for ldap
find_library( HAVE_LIBLDAP ldap )
@ -76,7 +88,9 @@ endif( )
find_path( HEIMDAL_LIBDIR
NAMES libhdb.so
HINTS ${KRB5_LIBRARY_DIRS} ${KRB5_LIBDIR} /usr/lib
HINTS
${KRB5_LIBRARY_DIRS} ${KRB5_LIBDIR}
/usr/${SYSTEM_LIBDIR} /usr/local/${SYSTEM_LIBDIR}
PATH_SUFFIXES "heimdal"
)
if( NOT "${HEIMDAL_LIBDIR}" STREQUAL "${KRB5_LIBDIR}" )

Loading…
Cancel
Save