diff options
author | Jan Tattermusch <jtattermusch@google.com> | 2017-08-25 14:26:47 +0200 |
---|---|---|
committer | Jan Tattermusch <jtattermusch@google.com> | 2017-09-10 14:01:23 +0200 |
commit | 9d1d0529d3f46d538b85e7a8ad787e3a27a14096 (patch) | |
tree | c69cbc613ef3410deebdacb3cf7c42216634e3a5 /cmake/gRPCConfigVersion.cmake.in | |
parent | 210f2a51e5995796227ec55ff5eb4bfde62240a8 (diff) |
move cmake config files to /cmake
Diffstat (limited to 'cmake/gRPCConfigVersion.cmake.in')
-rw-r--r-- | cmake/gRPCConfigVersion.cmake.in | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/cmake/gRPCConfigVersion.cmake.in b/cmake/gRPCConfigVersion.cmake.in new file mode 100644 index 0000000000..f3c19fd403 --- /dev/null +++ b/cmake/gRPCConfigVersion.cmake.in @@ -0,0 +1,11 @@ +set(PACKAGE_VERSION "@PACKAGE_VERSION@")
+
+# Check whether the requested PACKAGE_FIND_VERSION is compatible
+if("${PACKAGE_VERSION}" VERSION_LESS "${PACKAGE_FIND_VERSION}")
+ set(PACKAGE_VERSION_COMPATIBLE FALSE)
+else()
+ set(PACKAGE_VERSION_COMPATIBLE TRUE)
+ if ("${PACKAGE_VERSION}" VERSION_EQUAL "${PACKAGE_FIND_VERSION}")
+ set(PACKAGE_VERSION_EXACT TRUE)
+ endif()
+endif()
|