Commit 7a07439c authored by Andreas Schuh's avatar Andreas Schuh

Set PACKAGE_VERSION_EXACT to FALSE if major.minor version is not equal to the requested version.

parent 2ec91bff
...@@ -13,8 +13,9 @@ set (PACKAGE_VERSION "@PACKAGE_VERSION@") ...@@ -13,8 +13,9 @@ set (PACKAGE_VERSION "@PACKAGE_VERSION@")
set (PACKAGE_VERSION_COMPATIBLE TRUE) set (PACKAGE_VERSION_COMPATIBLE TRUE)
set (PACKAGE_VERSION_UNSUITABLE FALSE) set (PACKAGE_VERSION_UNSUITABLE FALSE)
if ("${PACKAGE_FIND_VERSION_MAJOR}" EQUAL "@PACKAGE_VERSION_MAJOR@") if ("${PACKAGE_FIND_VERSION_MAJOR}" EQUAL "@PACKAGE_VERSION_MAJOR@" AND
if ("${PACKAGE_FIND_VERSION_MINOR}" EQUAL "@PACKAGE_VERSION_MINOR@") "${PACKAGE_FIND_VERSION_MINOR}" EQUAL "@PACKAGE_VERSION_MINOR@")
set (PACKAGE_VERSION_EXACT TRUE) set (PACKAGE_VERSION_EXACT TRUE)
endif () else ()
set (PACKAGE_VERSION_EXACT FALSE)
endif () endif ()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment