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:
Viktor Szakats 2024-08-14 23:27:33 +02:00
parent 9fc2d7b8de
commit c2e814f8d7
No known key found for this signature in database
GPG Key ID: B5ABD165E2AEF201

View File

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