2020-10-26 14:39:40 +00:00
|
|
|
# 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 configure_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 requested version string are exactly the same and it sets
|
|
|
|
# PACKAGE_VERSION_COMPATIBLE if the current version is >= requested version.
|
|
|
|
# The variable CVF_VERSION must be set before calling configure_file().
|
|
|
|
|
|
|
|
set(PACKAGE_VERSION "5.0.0")
|
|
|
|
|
|
|
|
if(PACKAGE_VERSION VERSION_LESS PACKAGE_FIND_VERSION)
|
|
|
|
set(PACKAGE_VERSION_COMPATIBLE FALSE)
|
|
|
|
else()
|
|
|
|
set(PACKAGE_VERSION_COMPATIBLE TRUE)
|
|
|
|
if(PACKAGE_FIND_VERSION STREQUAL PACKAGE_VERSION)
|
|
|
|
set(PACKAGE_VERSION_EXACT TRUE)
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
|
|
# if the installed project requested no architecture check, don't perform the check
|
|
|
|
if("FALSE")
|
|
|
|
return()
|
2020-12-03 13:07:15 +00:00
|
|
|
endif()
|