From: Kefu Chai Date: Sun, 14 Feb 2021 07:51:05 +0000 (+0800) Subject: cmake: use NUMA for package name in FindNUMA.cmake X-Git-Tag: v17.1.0~2896^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=b502f69ca22c33ac856a46b1ec176df250121aa6;p=ceph.git cmake: use NUMA for package name in FindNUMA.cmake to address the warning from cmake, like CMake Warning (dev) at /usr/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:273 (message): The package name passed to `find_package_handle_standard_args` (numa) does not match the name of the calling package (NUMA). This can lead to problems in calling code that expects `find_package` result variables (e.g., `_FOUND`) to follow a certain pattern. Signed-off-by: Kefu Chai --- diff --git a/cmake/modules/FindNUMA.cmake b/cmake/modules/FindNUMA.cmake index 482061c645b7..d2e834677185 100644 --- a/cmake/modules/FindNUMA.cmake +++ b/cmake/modules/FindNUMA.cmake @@ -9,7 +9,7 @@ find_path(NUMA_INCLUDE_DIR numa.h) find_library(NUMA_LIBRARIES numa) include(FindPackageHandleStandardArgs) -find_package_handle_standard_args(numa DEFAULT_MSG NUMA_LIBRARIES NUMA_INCLUDE_DIR) +find_package_handle_standard_args(NUMA DEFAULT_MSG NUMA_LIBRARIES NUMA_INCLUDE_DIR) mark_as_advanced( NUMA_LIBRARIES