From d68454272c8fc086dabb38ca3c0e877a922e4770 Mon Sep 17 00:00:00 2001 From: Ilya Verbin <iverbin@tarantool.org> Date: Mon, 4 Sep 2023 17:03:12 +0300 Subject: [PATCH] cmake: fix warning in FindLibUnwind.cmake This patch fixes the following warning: NO_WRAP CMake Warning (dev) at cmake-3.25/Modules/FindPackageHandleStandardArgs.cmake:438 (message): The package name passed to `find_package_handle_standard_args` (GetLIBUNWINDVersion.cmake) does not match the name of the calling package (LibUnwind). 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): cmake/FindLibUnwind.cmake:82 (find_package_handle_standard_args) CMakeLists.txt:552 (find_package) NO_WRAP Closes #6998 NO_DOC=build NO_TEST=build NO_CHANGELOG=build --- cmake/FindLibUnwind.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/FindLibUnwind.cmake b/cmake/FindLibUnwind.cmake index 5fb4f4a53e..70221c1213 100644 --- a/cmake/FindLibUnwind.cmake +++ b/cmake/FindLibUnwind.cmake @@ -79,7 +79,7 @@ else() GetLibUnwindVersion(LIBUNWIND_VERSION) endif() -find_package_handle_standard_args(GetLIBUNWINDVersion.cmake +find_package_handle_standard_args(LibUnwind VERSION_VAR LIBUNWIND_VERSION REQUIRED_VARS LIBUNWIND_INCLUDE_DIR LIBUNWIND_LIBRARIES) -- GitLab