Skip to content
Snippets Groups Projects
Commit 7a07439c authored by Andreas Schuh's avatar Andreas Schuh
Browse files

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

parent 2ec91bff
No related branches found
No related tags found
No related merge requests found
......@@ -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 ()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment