summaryrefslogtreecommitdiffstats
path: root/src/ceph/cmake/modules/FindLZ4.cmake
diff options
context:
space:
mode:
authorQiaowei Ren <qiaowei.ren@intel.com>2018-03-01 14:38:11 +0800
committerQiaowei Ren <qiaowei.ren@intel.com>2018-03-01 14:38:11 +0800
commit7da45d65be36d36b880cc55c5036e96c24b53f00 (patch)
treed4f944eb4f8f8de50a9a7584ffa408dc3a3185b2 /src/ceph/cmake/modules/FindLZ4.cmake
parent691462d09d0987b47e112d6ee8740375df3c51b2 (diff)
remove ceph code
This patch removes initial ceph code, due to license issue. Change-Id: I092d44f601cdf34aed92300fe13214925563081c Signed-off-by: Qiaowei Ren <qiaowei.ren@intel.com>
Diffstat (limited to 'src/ceph/cmake/modules/FindLZ4.cmake')
-rw-r--r--src/ceph/cmake/modules/FindLZ4.cmake34
1 files changed, 0 insertions, 34 deletions
diff --git a/src/ceph/cmake/modules/FindLZ4.cmake b/src/ceph/cmake/modules/FindLZ4.cmake
deleted file mode 100644
index 27d4bc5..0000000
--- a/src/ceph/cmake/modules/FindLZ4.cmake
+++ /dev/null
@@ -1,34 +0,0 @@
-# Try to find liblz4
-#
-# Once done, this will define
-#
-# LZ4_FOUND
-# LZ4_INCLUDE_DIR
-# LZ4_LIBRARY
-# LZ4_VERSION_STRING
-# LZ4_VERSION_MAJOR
-# LZ4_VERSION_MINOR
-# LZ4_VERSION_RELEASE
-
-find_path(LZ4_INCLUDE_DIR NAMES lz4.h)
-
-if(LZ4_INCLUDE_DIR AND EXISTS "${LZ4_INCLUDE_DIR}/lz4.h")
- foreach(ver "MAJOR" "MINOR" "RELEASE")
- file(STRINGS "${LZ4_INCLUDE_DIR}/lz4.h" LZ4_VER_${ver}_LINE
- REGEX "^#define[ \t]+LZ4_VERSION_${ver}[ \t]+[0-9]+[ \t]+.*$")
- string(REGEX REPLACE "^#define[ \t]+LZ4_VERSION_${ver}[ \t]+([0-9]+)[ \t]+.*$"
- "\\1" LZ4_VERSION_${ver} "${LZ4_VER_${ver}_LINE}")
- unset(${LZ4_VER_${ver}_LINE})
- endforeach()
- set(LZ4_VERSION_STRING
- "${LZ4_VERSION_MAJOR}.${LZ4_VERSION_MINOR}.${LZ4_VERSION_RELEASE}")
-endif()
-
-find_library(LZ4_LIBRARY NAMES lz4)
-
-include(FindPackageHandleStandardArgs)
-find_package_handle_standard_args(LZ4
- REQUIRED_VARS LZ4_LIBRARY LZ4_INCLUDE_DIR
- VERSION_VAR LZ4_VERSION_STRING)
-
-mark_as_advanced(LZ4_INCLUDE_DIR LZ4_LIBRARY)