From e07095cfccf23dfd8a869e7342c88b79374b9f40 Mon Sep 17 00:00:00 2001 From: Danny Lin Date: Sat, 3 Dec 2022 17:34:45 -0800 Subject: [PATCH] Fix CMake find_package warning (#33) CMake Warning (dev) at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:438 (message): The package name passed to `find_package_handle_standard_args` (EMP-AG2PC) does not match the name of the calling package (emp-ag2pc). 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): /home/dragon/code/crypto/prefix-emptool-host/cmake/emp-ag2pc-config.cmake:7 (find_package_handle_standard_args) CMakeLists.txt:11 (FIND_PACKAGE) This warning is for project developers. Use -Wno-dev to suppress it. --- cmake/emp-ag2pc-config.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/emp-ag2pc-config.cmake b/cmake/emp-ag2pc-config.cmake index fb286f7..55235da 100644 --- a/cmake/emp-ag2pc-config.cmake +++ b/cmake/emp-ag2pc-config.cmake @@ -4,7 +4,7 @@ find_path(EMP-AG2PC_INCLUDE_DIR emp-ag2pc/emp-ag2pc.h) include(FindPackageHandleStandardArgs) -find_package_handle_standard_args(EMP-AG2PC DEFAULT_MSG EMP-AG2PC_INCLUDE_DIR) +find_package_handle_standard_args(emp-ag2pc DEFAULT_MSG EMP-AG2PC_INCLUDE_DIR) if(EMP-AG2PC_FOUND) set(EMP-AG2PC_INCLUDE_DIRS ${EMP-AG2PC_INCLUDE_DIR} ${EMP-OT_INCLUDE_DIRS})