summaryrefslogtreecommitdiffstats
path: root/cmake/modules/Findxio.cmake
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 18:24:20 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 18:24:20 +0000
commit483eb2f56657e8e7f419ab1a4fab8dce9ade8609 (patch)
treee5d88d25d870d5dedacb6bbdbe2a966086a0a5cf /cmake/modules/Findxio.cmake
parentInitial commit. (diff)
downloadceph-483eb2f56657e8e7f419ab1a4fab8dce9ade8609.tar.xz
ceph-483eb2f56657e8e7f419ab1a4fab8dce9ade8609.zip
Adding upstream version 14.2.21.upstream/14.2.21upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'cmake/modules/Findxio.cmake')
-rw-r--r--cmake/modules/Findxio.cmake24
1 files changed, 24 insertions, 0 deletions
diff --git a/cmake/modules/Findxio.cmake b/cmake/modules/Findxio.cmake
new file mode 100644
index 00000000..938af03e
--- /dev/null
+++ b/cmake/modules/Findxio.cmake
@@ -0,0 +1,24 @@
+# - Find libxio
+# Find libxio transport library
+#
+# XIO_INCLUDE_DIR - libxio include dir
+# XIO_LIBRARIES - List of libraries
+# XIO_FOUND - True if libxio found.
+
+if(WITH_XIO AND EXISTS ${WITH_XIO})
+ find_path(XIO_INCLUDE_DIR libxio.h HINTS "${WITH_XIO}/include")
+ find_library(XIO_LIBRARY xio HINTS "${WITH_XIO}/lib")
+else()
+ find_path(XIO_INCLUDE_DIR libxio.h)
+ find_library(XIO_LIBRARY xio)
+endif()
+
+set(XIO_LIBRARIES ${XIO_LIBRARY})
+
+include(FindPackageHandleStandardArgs)
+find_package_handle_standard_args(xio DEFAULT_MSG XIO_LIBRARY XIO_INCLUDE_DIR)
+
+mark_as_advanced(
+ XIO_LIBRARY
+ XIO_INCLUDE_DIR
+ )