From: Viktor Szakats Date: Wed, 14 Aug 2024 21:27:33 +0000 (+0200) Subject: cmake/FindNettle: log message when found via `pkg-config` X-Git-Tag: curl-8_10_0~202 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c2e814f8d7e892dea23f481751a27c532d4e2d0f;p=thirdparty%2Fcurl.git 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 --- diff --git a/CMake/FindNettle.cmake b/CMake/FindNettle.cmake index 33f3d915fb..d36194f7d1 100644 --- a/CMake/FindNettle.cmake +++ b/CMake/FindNettle.cmake @@ -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")