mirror of
https://github.com/gflags/gflags.git
synced 2025-04-04 13:05:03 +00:00
Set PACKAGE_VERSION_EXACT to FALSE if major.minor version is not equal to the requested version.
This commit is contained in:
parent
2ec91bffad
commit
7a07439cf6
1 changed files with 5 additions and 4 deletions
|
@ -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 ()
|
||||
|
|
Loading…
Add table
Reference in a new issue