mirror of
https://github.com/ceph/ceph
synced 2024-12-25 04:43:17 +00:00
b502f69ca2
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 <kchai@redhat.com>
17 lines
443 B
CMake
17 lines
443 B
CMake
# - Find libnuma
|
|
# Find the numa library and includes
|
|
#
|
|
# NUMA_INCLUDE_DIR - where to find numa.h, etc.
|
|
# NUMA_LIBRARIES - List of libraries when using numa.
|
|
# NUMA_FOUND - True if numa found.
|
|
|
|
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)
|
|
|
|
mark_as_advanced(
|
|
NUMA_LIBRARIES
|
|
NUMA_INCLUDE_DIR)
|