minizip-config-version.cmake | minizip-config-version.cmake | |||
---|---|---|---|---|
# This is a basic version file for the Config-mode of find_package(). | # This is a basic version file for the Config-mode of find_package(). | |||
# It is used by write_basic_package_version_file() as input file for config ure_file() | # It is used by write_basic_package_version_file() as input file for config ure_file() | |||
# to create a version-file which can be installed along a config.cmake file . | # to create a version-file which can be installed along a config.cmake file . | |||
# | # | |||
# The created file sets PACKAGE_VERSION_EXACT if the current version string and | # The created file sets PACKAGE_VERSION_EXACT if the current version string and | |||
# the requested version string are exactly the same and it sets | # the requested version string are exactly the same and it sets | |||
# PACKAGE_VERSION_COMPATIBLE if the current version is >= requested version , | # PACKAGE_VERSION_COMPATIBLE if the current version is >= requested version , | |||
# but only if the requested major version is the same as the current one. | # but only if the requested major version is the same as the current one. | |||
# The variable CVF_VERSION must be set before calling configure_file(). | # The variable CVF_VERSION must be set before calling configure_file(). | |||
set(PACKAGE_VERSION "3.0.10") | set(PACKAGE_VERSION "4.0.5") | |||
if(PACKAGE_VERSION VERSION_LESS PACKAGE_FIND_VERSION) | if(PACKAGE_VERSION VERSION_LESS PACKAGE_FIND_VERSION) | |||
set(PACKAGE_VERSION_COMPATIBLE FALSE) | set(PACKAGE_VERSION_COMPATIBLE FALSE) | |||
else() | else() | |||
if("3.0.10" MATCHES "^([0-9]+)\\.") | if("4.0.5" MATCHES "^([0-9]+)\\.") | |||
set(CVF_VERSION_MAJOR "${CMAKE_MATCH_1}") | set(CVF_VERSION_MAJOR "${CMAKE_MATCH_1}") | |||
if(NOT CVF_VERSION_MAJOR VERSION_EQUAL 0) | if(NOT CVF_VERSION_MAJOR VERSION_EQUAL 0) | |||
string(REGEX REPLACE "^0+" "" CVF_VERSION_MAJOR "${CVF_VERSION_MAJOR} ") | string(REGEX REPLACE "^0+" "" CVF_VERSION_MAJOR "${CVF_VERSION_MAJOR} ") | |||
endif() | endif() | |||
else() | else() | |||
set(CVF_VERSION_MAJOR "3.0.10") | set(CVF_VERSION_MAJOR "4.0.5") | |||
endif() | endif() | |||
if(PACKAGE_FIND_VERSION_RANGE) | if(PACKAGE_FIND_VERSION_RANGE) | |||
# both endpoints of the range must have the expected major version | # both endpoints of the range must have the expected major version | |||
math (EXPR CVF_VERSION_MAJOR_NEXT "${CVF_VERSION_MAJOR} + 1") | math (EXPR CVF_VERSION_MAJOR_NEXT "${CVF_VERSION_MAJOR} + 1") | |||
if (NOT PACKAGE_FIND_VERSION_MIN_MAJOR STREQUAL CVF_VERSION_MAJOR | if (NOT PACKAGE_FIND_VERSION_MIN_MAJOR STREQUAL CVF_VERSION_MAJOR | |||
OR ((PACKAGE_FIND_VERSION_RANGE_MAX STREQUAL "INCLUDE" AND NOT PACK AGE_FIND_VERSION_MAX_MAJOR STREQUAL CVF_VERSION_MAJOR) | OR ((PACKAGE_FIND_VERSION_RANGE_MAX STREQUAL "INCLUDE" AND NOT PACK AGE_FIND_VERSION_MAX_MAJOR STREQUAL CVF_VERSION_MAJOR) | |||
OR (PACKAGE_FIND_VERSION_RANGE_MAX STREQUAL "EXCLUDE" AND NOT PAC KAGE_FIND_VERSION_MAX VERSION_LESS_EQUAL CVF_VERSION_MAJOR_NEXT))) | OR (PACKAGE_FIND_VERSION_RANGE_MAX STREQUAL "EXCLUDE" AND NOT PAC KAGE_FIND_VERSION_MAX VERSION_LESS_EQUAL CVF_VERSION_MAJOR_NEXT))) | |||
set(PACKAGE_VERSION_COMPATIBLE FALSE) | set(PACKAGE_VERSION_COMPATIBLE FALSE) | |||
elseif(PACKAGE_FIND_VERSION_MIN_MAJOR STREQUAL CVF_VERSION_MAJOR | elseif(PACKAGE_FIND_VERSION_MIN_MAJOR STREQUAL CVF_VERSION_MAJOR | |||
End of changes. 3 change blocks. | ||||
3 lines changed or deleted | 3 lines changed or added | |||
This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/ |