mirror of
https://github.com/ceph/ceph
synced 2024-12-23 20:03:56 +00:00
4acd2cef35
The cmake package names of libraries are case-sensitive. The name used in FIND_PACKAGE_HANDLE_STANDARD_ARGS - e.g. "cryptopp" - must match the name used in the module name - "Findcryptopp.cmake" - as well as the name used in find_package() call - "find_package(cryptopp REQUIRED)" Note that the term "package" here refers to a cmake abstraction, *not* an actual RPM or Debian package. Fixes: http://tracker.ceph.com/issues/19853 Signed-off-by: Nathan Cutler <ncutler@suse.com>
23 lines
846 B
CMake
23 lines
846 B
CMake
# - Find Babeltrace
|
|
# This module defines the following variables:
|
|
# BABELTRACE_FOUND = Was Babeltrace found or not?
|
|
# BABELTRACE_EXECUTABLE = The path to lttng command
|
|
# BABELTRACE_LIBRARIES = The list of libraries to link to when using Babeltrace
|
|
# BABELTRACE_INCLUDE_DIR = The path to Babeltrace include directory
|
|
#
|
|
|
|
find_path(BABELTRACE_INCLUDE_DIR
|
|
NAMES babeltrace/babeltrace.h babeltrace/ctf/events.h babeltrace/ctf/iterator.h)
|
|
|
|
find_library(BABELTRACE_LIBRARY
|
|
NAMES babeltrace babeltrace-ctf)
|
|
|
|
find_program(BABELTRACE_EXECUTABLE
|
|
NAMES babeltrace babeltrace-ctf)
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
find_package_handle_standard_args(babeltrace DEFAULT_MSG
|
|
BABELTRACE_INCLUDE_DIR BABELTRACE_LIBRARY)
|
|
set(BABELTRACE_LIBRARIES ${BABELTRACE_LIBRARY})
|
|
mark_as_advanced(BABELTRACE_INCLUDE_DIR BABELTRACE_LIBRARY)
|