mirror of
https://github.com/emp-toolkit/emp-ag2pc.git
synced 2026-01-06 22:13:53 -05:00
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.
This commit is contained in:
@@ -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})
|
||||
|
||||
Reference in New Issue
Block a user