Warning, /frameworks/kdelibs4support/cmake/modules/BasicFindPackageVersion.cmake.in is written in an unsupported language. File is not indexed.

0001 # This is a very basic file for the new style find_package() search mode,
0002 # i.e. Config-mode. It is used by MACRO_WRITE_BASIC_CMAKE_VERSION_FILE() from 
0003 # MacroWriteBasicCMakeVersionFile.cmake.
0004 # In this mode find_package() searches for a <package>Config.cmake 
0005 # file and an associated <package>Version.cmake file, which it loads to check 
0006 # the version number.
0007 # This file can be used with configure_file() to generate such a file for a project
0008 # with very basic logic.
0009 # It sets PACKAGE_VERSION_EXACT if the current version string and the requested
0010 # version string are exactly the same and it sets PACKAGE_VERSION_COMPATIBLE
0011 # if the current version is >= requested version.
0012 # If this is not good enough for your project, you need to write your own
0013 # improved <package>Version.cmake file.
0014 # This file requires the following three variables to be set:
0015 #   PROJECT_VERSION_MAJOR
0016 #   PROJECT_VERSION_MINOR
0017 #   PROJECT_VERSION_PATCH
0018 
0019 
0020 set(PACKAGE_VERSION @PROJECT_VERSION_MAJOR@.@PROJECT_VERSION_MINOR@.@PROJECT_VERSION_PATCH@)
0021 
0022 if("${PACKAGE_VERSION}" VERSION_LESS "${PACKAGE_FIND_VERSION}" )
0023    set(PACKAGE_VERSION_COMPATIBLE FALSE)
0024 else("${PACKAGE_VERSION}" VERSION_LESS "${PACKAGE_FIND_VERSION}" )
0025    set(PACKAGE_VERSION_COMPATIBLE TRUE)
0026    if( "${PACKAGE_FIND_VERSION}" STREQUAL "${PACKAGE_VERSION}")
0027       set(PACKAGE_VERSION_EXACT TRUE)
0028    endif( "${PACKAGE_FIND_VERSION}" STREQUAL "${PACKAGE_VERSION}")
0029 endif("${PACKAGE_VERSION}" VERSION_LESS "${PACKAGE_FIND_VERSION}" )
0030