File: FindLIBRPMA.cmake

package info (click to toggle)
rpma 1.3.0-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 3,040 kB
  • sloc: ansic: 27,313; sh: 1,805; perl: 1,148; makefile: 8
file content (28 lines) | stat: -rw-r--r-- 694 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#
# SPDX-License-Identifier: BSD-3-Clause
# Copyright 2020, Intel Corporation
#

if(NOT LIBIBVERBS_FOUND)
	find_package(LIBIBVERBS REQUIRED libibverbs)
endif()

if(NOT LIBRDMACM_FOUND)
	find_package(LIBRDMACM REQUIRED librdmacm)
endif()

message(STATUS "Checking for module 'librpma' w/o PkgConfig")

find_library(LIBRPMA_LIBRARY NAMES librpma.so librpma rpma)
set(LIBRPMA_LIBRARIES ${LIBRPMA_LIBRARY})

if(LIBRPMA_LIBRARY)
	message(STATUS "  Found librpma w/o PkgConfig")
else()
	set(MSG_NOT_FOUND "librpma NOT found (set CMAKE_PREFIX_PATH to point the location)")
	if(LIBRPMA_FIND_REQUIRED)
		message(FATAL_ERROR ${MSG_NOT_FOUND})
	else()
		message(WARNING ${MSG_NOT_FOUND})
	endif()
endif()