summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorAndreas Schuh <andreas.schuh.84@gmail.com>2013-08-01 00:27:40 +0100
committerAndreas Schuh <andreas.schuh.84@gmail.com>2013-08-01 00:27:40 +0100
commit7a07439cf6771c4ae0cf3c06f9ee76bb2c2f1c8e (patch)
treefd56bb30300a26f183ddf76245dd3245965279c6 /cmake
parent2ec91bffad6b4e0c8949a6dea5d3c6c679282c08 (diff)
downloadgflags-7a07439cf6771c4ae0cf3c06f9ee76bb2c2f1c8e.tar.gz
gflags-7a07439cf6771c4ae0cf3c06f9ee76bb2c2f1c8e.tar.bz2
gflags-7a07439cf6771c4ae0cf3c06f9ee76bb2c2f1c8e.zip
Set PACKAGE_VERSION_EXACT to FALSE if major.minor version is not equal to the requested version.
Diffstat (limited to 'cmake')
-rw-r--r--cmake/version.cmake.in9
1 files changed, 5 insertions, 4 deletions
diff --git a/cmake/version.cmake.in b/cmake/version.cmake.in
index e153f18..1e1af05 100644
--- a/cmake/version.cmake.in
+++ b/cmake/version.cmake.in
@@ -13,8 +13,9 @@ set (PACKAGE_VERSION "@PACKAGE_VERSION@")
set (PACKAGE_VERSION_COMPATIBLE TRUE)
set (PACKAGE_VERSION_UNSUITABLE FALSE)
-if ("${PACKAGE_FIND_VERSION_MAJOR}" EQUAL "@PACKAGE_VERSION_MAJOR@")
- if ("${PACKAGE_FIND_VERSION_MINOR}" EQUAL "@PACKAGE_VERSION_MINOR@")
- set (PACKAGE_VERSION_EXACT TRUE)
- endif ()
+if ("${PACKAGE_FIND_VERSION_MAJOR}" EQUAL "@PACKAGE_VERSION_MAJOR@" AND
+ "${PACKAGE_FIND_VERSION_MINOR}" EQUAL "@PACKAGE_VERSION_MINOR@")
+ set (PACKAGE_VERSION_EXACT TRUE)
+else ()
+ set (PACKAGE_VERSION_EXACT FALSE)
endif ()