summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorVictor Costan <costan@google.com>2019-11-07 21:38:01 -0800
committerVictor Costan <pwnall@chromium.org>2019-11-07 22:39:04 -0800
commit0eec45ed163a6907dbc56683e8c5afdab8b8d24e (patch)
tree51b71f41c6e0f4748a040b317cd0fb7256c4de1e /cmake
parent6617df53fa6afb624eb5276d03bf7f3097c0b2ae (diff)
downloadsnappy-git-0eec45ed163a6907dbc56683e8c5afdab8b8d24e.tar.gz
Align CMake configuration with related projects.
PiperOrigin-RevId: 279237837
Diffstat (limited to 'cmake')
-rw-r--r--cmake/SnappyConfig.cmake1
-rw-r--r--cmake/SnappyConfig.cmake.in33
2 files changed, 33 insertions, 1 deletions
diff --git a/cmake/SnappyConfig.cmake b/cmake/SnappyConfig.cmake
deleted file mode 100644
index dc308ae..0000000
--- a/cmake/SnappyConfig.cmake
+++ /dev/null
@@ -1 +0,0 @@
-include("${CMAKE_CURRENT_LIST_DIR}/SnappyTargets.cmake") \ No newline at end of file
diff --git a/cmake/SnappyConfig.cmake.in b/cmake/SnappyConfig.cmake.in
new file mode 100644
index 0000000..9e7d134
--- /dev/null
+++ b/cmake/SnappyConfig.cmake.in
@@ -0,0 +1,33 @@
+# Copyright 2019 Google Inc. All Rights Reserved.
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions are
+# met:
+#
+# * Redistributions of source code must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+# * Redistributions in binary form must reproduce the above
+# copyright notice, this list of conditions and the following disclaimer
+# in the documentation and/or other materials provided with the
+# distribution.
+# * Neither the name of Google Inc. nor the names of its
+# contributors may be used to endorse or promote products derived from
+# this software without specific prior written permission.
+#
+# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+@PACKAGE_INIT@
+
+include("${CMAKE_CURRENT_LIST_DIR}/SnappyTargets.cmake")
+
+check_required_components(Snappy) \ No newline at end of file