diff options
| -rw-r--r-- | ports/folly/FindLZ4.cmake | 12 | ||||
| -rw-r--r-- | ports/folly/FindSnappy.cmake | 12 |
2 files changed, 24 insertions, 0 deletions
diff --git a/ports/folly/FindLZ4.cmake b/ports/folly/FindLZ4.cmake new file mode 100644 index 000000000..bf3140e15 --- /dev/null +++ b/ports/folly/FindLZ4.cmake @@ -0,0 +1,12 @@ +find_path(LZ4_INCLUDE_DIR lz4.h)
+
+find_package(LZ4_LIBRARY_DEBUG NAMES lz4d)
+find_package(LZ4_LIBRARY_RELEASE NAMES lz4)
+
+select_library_configurations(LZ4_LIBRARY)
+
+include(FindPackageHandleStandardArgs)
+FIND_PACKAGE_HANDLE_STANDARD_ARGS(
+ LZ4 DEFAULT_MSG
+ LZ4_LIBRARY LZ4_INCLUDE_DIR
+)
diff --git a/ports/folly/FindSnappy.cmake b/ports/folly/FindSnappy.cmake new file mode 100644 index 000000000..e8916d6e0 --- /dev/null +++ b/ports/folly/FindSnappy.cmake @@ -0,0 +1,12 @@ +find_path(SNAPPY_INCLUDE_DIR snappy.h)
+
+find_package(SNAPPY_LIBRARY_DEBUG NAMES snappyd)
+find_package(SNAPPY_LIBRARY_RELEASE NAMES snappy)
+
+select_library_configurations(SNAPPY_LIBRARY)
+
+include(FindPackageHandleStandardArgs)
+FIND_PACKAGE_HANDLE_STANDARD_ARGS(
+ SNAPPY DEFAULT_MSG
+ SNAPPY_LIBRARY SNAPPY_INCLUDE_DIR
+)
|
