Apply suggestions from code review
Co-authored-by: Adriaan de Groot <groot@kde.org>
This commit is contained in:
parent
559d19018c
commit
1b07de6fa7
@ -8,9 +8,11 @@ find_package(Crypt REQUIRED)
|
||||
|
||||
# Check for crypt_gensalt
|
||||
if(Crypt_FOUND)
|
||||
set(_old_CRL "${CMAKE_REQUIRED_LIBRARIES}")
|
||||
list(APPEND CMAKE_REQUIRED_LIBRARIES crypt)
|
||||
include(CheckSymbolExists)
|
||||
check_symbol_exists(crypt_gensalt crypt.h HAS_CRYPT_GENSALT)
|
||||
set(CMAKE_REQUIRED_LIBRARIES "${_old_CRL}")
|
||||
if(HAS_CRYPT_GENSALT)
|
||||
add_definitions(-DHAVE_CRYPT_GENSALT)
|
||||
endif()
|
||||
|
Loading…
Reference in New Issue
Block a user