cmake/FindNettle: log message when found via pkg-config
The message mimics the CMake-native message (by `find_package_handle_standard_args()`), with the header path and version number. Closes #14596
This commit is contained in:
parent
9fc2d7b8de
commit
c2e814f8d7
@ -44,6 +44,7 @@ endif()
|
||||
|
||||
if(NETTLE_FOUND)
|
||||
set(NETTLE_LIBRARIES ${NETTLE_LINK_LIBRARIES})
|
||||
message(STATUS "Found nettle (via pkg-config): ${NETTLE_INCLUDE_DIRS} (Found version \"${NETTLE_VERSION}\")")
|
||||
else()
|
||||
find_path(NETTLE_INCLUDE_DIR NAMES "nettle/sha2.h")
|
||||
find_library(NETTLE_LIBRARY NAMES "nettle")
|
||||
|
||||
Loading…
Reference in New Issue
Block a user