Hi, please find a possible patch attached for this issue:
* Paul Gevers <elb...@debian.org> [200923 09:20]: > autopkgtest [18:08:26]: test build1: - - - - - - - - - - results - - - > - - - - - - - > build1 FAIL stderr: CMake Warning (dev) at > /usr/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:273 > (message): > autopkgtest [18:08:26]: test build1: - - - - - - - - - - stderr - - - - > - - - - - - > CMake Warning (dev) at > /usr/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:273 > (message): > The package name passed to `find_package_handle_standard_args` (NETTLE) > does not match the name of the calling package (Nettle). This can lead to > problems in calling code that expects `find_package` result variables > (e.g., `_FOUND`) to follow a certain pattern. > Call Stack (most recent call first): > FindNettle.cmake:15 (find_package_handle_standard_args) > CMakeLists.txt:10 (find_package) > This warning is for project developers. Use -Wno-dev to suppress it. I've also opened a merge request on salsa: https://salsa.debian.org/debian/wslay/-/merge_requests/1 The patch changes the casing of NETTLE and CUNIT in the cmake files. I'm not sure why cmake starts complaining about this when there is no functional difference, even in the places where CMake itself interprets the names, but ¯\_(ツ)_/¯ Chris
>From 9429e457884defd9f46efd66f7e2be4e1d1d2217 Mon Sep 17 00:00:00 2001 From: Chris Hofstaedtler <z...@debian.org> Date: Wed, 23 Sep 2020 09:12:42 +0000 Subject: [PATCH] Avoid CMake casing warnings Pass package names in consistent casing to CMake directives, as CMake 3.18 has started complaining - needlessy - otherwise. Closes: #970334 --- debian/patches/20_cmake_casing.patch | 31 ++++++++++++++++++++++++++++ debian/patches/series | 1 + 2 files changed, 32 insertions(+) create mode 100644 debian/patches/20_cmake_casing.patch diff --git a/debian/patches/20_cmake_casing.patch b/debian/patches/20_cmake_casing.patch new file mode 100644 index 0000000..c405ac4 --- /dev/null +++ b/debian/patches/20_cmake_casing.patch @@ -0,0 +1,31 @@ +Author: Chris Hofstaedtler <z...@debian.org> + +Pass package names in consistent casing to CMake directives, as CMake 3.18 has +started complaining - needlessy - otherwise. + +diff --git a/cmake/FindCUnit.cmake b/cmake/FindCUnit.cmake +index 2c57048..ea108cb 100644 +--- a/cmake/FindCUnit.cmake ++++ b/cmake/FindCUnit.cmake +@@ -12,7 +12,7 @@ find_library(CUNIT_LIBRARY NAMES cunit libcunit) + # handle the QUIETLY and REQUIRED arguments and set CUNIT_FOUND to TRUE if + # all listed variables are TRUE + include(FindPackageHandleStandardArgs) +-find_package_handle_standard_args(CUNIT DEFAULT_MSG CUNIT_LIBRARY CUNIT_INCLUDE_DIRS) ++find_package_handle_standard_args(CUnit DEFAULT_MSG CUNIT_LIBRARY CUNIT_INCLUDE_DIRS) + + if(CUNIT_FOUND) + set(CUNIT_LIBRARIES ${CUNIT_LIBRARY}) +diff --git a/cmake/FindNettle.cmake b/cmake/FindNettle.cmake +index 9971eae..e45510e 100644 +--- a/cmake/FindNettle.cmake ++++ b/cmake/FindNettle.cmake +@@ -12,7 +12,7 @@ find_library(NETTLE_LIBRARY NAMES nettle libnettle) + # handle the QUIETLY and REQUIRED arguments and set NETTLE_FOUND to TRUE if + # all listed variables are TRUE + include(FindPackageHandleStandardArgs) +-find_package_handle_standard_args(NETTLE DEFAULT_MSG NETTLE_LIBRARY NETTLE_INCLUDE_DIRS) ++find_package_handle_standard_args(Nettle DEFAULT_MSG NETTLE_LIBRARY NETTLE_INCLUDE_DIRS) + + if(NETTLE_FOUND) + set(NETTLE_LIBRARIES ${NETTLE_LIBRARY}) diff --git a/debian/patches/series b/debian/patches/series index a67e2f0..11fae01 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1 +1,2 @@ 10_update_cmake.patch +20_cmake_casing.patch -- 2.28.0