]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
cmake/FindNettle: log message when found via `pkg-config`
authorViktor Szakats <commit@vsz.me>
Wed, 14 Aug 2024 21:27:33 +0000 (23:27 +0200)
committerViktor Szakats <commit@vsz.me>
Mon, 19 Aug 2024 12:09:14 +0000 (14:09 +0200)
The message mimics the CMake-native message (by
`find_package_handle_standard_args()`), with the header path and version number.

Closes #14596

CMake/FindNettle.cmake

index 33f3d915fb7f1a7fedff2ecdb477b0e30cf483ef..d36194f7d1134aa08c2d5211a40bbc90ed8d775d 100644 (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")