aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Schumacher <roschuma@microsoft.com>2018-03-28 19:28:42 -0700
committerRobert Schumacher <roschuma@microsoft.com>2018-03-28 19:28:59 -0700
commit10e77be9fa5a4d6bb132c8d56ee8426de36ab449 (patch)
treefcc3086c089031acdf2631c6446674ea152aec22
parent3e1104465eb4e40e3b4dce1a212d90a68928d442 (diff)
downloadvcpkg-10e77be9fa5a4d6bb132c8d56ee8426de36ab449.tar.gz
vcpkg-10e77be9fa5a4d6bb132c8d56ee8426de36ab449.zip
[folly] Add missing files.
-rw-r--r--ports/folly/FindLZ4.cmake12
-rw-r--r--ports/folly/FindSnappy.cmake12
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
+)