diff options
| author | Alex Neundorf <neundorf@kde.org> | 2011-08-17 00:05:50 +0200 | 
|---|---|---|
| committer | Alex Neundorf <neundorf@kde.org> | 2011-08-17 00:05:50 +0200 | 
| commit | 5b50472218331bfd4216b2bf163bde6947bc4610 (patch) | |
| tree | 8bc7b5f2c97ba99f8ceed8035814a1e80de9f676 /attic/modules | |
| parent | a347bd95121289295cf64cdc6120be99de74dbe5 (diff) | |
| download | extra-cmake-modules-5b50472218331bfd4216b2bf163bde6947bc4610.tar.gz extra-cmake-modules-5b50472218331bfd4216b2bf163bde6947bc4610.tar.bz2 | |
Remove, has been merged into cmake master
Alex
Diffstat (limited to 'attic/modules')
| -rw-r--r-- | attic/modules/BasicFindPackageVersion.cmake.in | 30 | ||||
| -rw-r--r-- | attic/modules/MacroWriteBasicCMakeVersionFile.cmake | 22 | 
2 files changed, 0 insertions, 52 deletions
| diff --git a/attic/modules/BasicFindPackageVersion.cmake.in b/attic/modules/BasicFindPackageVersion.cmake.in deleted file mode 100644 index ae5d3125..00000000 --- a/attic/modules/BasicFindPackageVersion.cmake.in +++ /dev/null @@ -1,30 +0,0 @@ -# This is a very basic file for the new style find_package() search mode, -# i.e. Config-mode. It is used by MACRO_WRITE_BASIC_CMAKE_VERSION_FILE() from  -# MacroWriteBasicCMakeVersionFile.cmake. -# In this mode find_package() searches for a <package>Config.cmake  -# file and an associated <package>Version.cmake file, which it loads to check  -# the version number. -# This file can be used with configure_file() to generate such a file for a project -# with very basic logic. -# It 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. -# If this is not good enough for your project, you need to write your own -# improved <package>Version.cmake file. -# This file requires the following three variables to be set: -#   PROJECT_VERSION_MAJOR -#   PROJECT_VERSION_MINOR -#   PROJECT_VERSION_PATCH - - -set(PACKAGE_VERSION @PROJECT_VERSION_MAJOR@.@PROJECT_VERSION_MINOR@.@PROJECT_VERSION_PATCH@) - -if("${PACKAGE_VERSION}" VERSION_LESS "${PACKAGE_FIND_VERSION}" ) -   set(PACKAGE_VERSION_COMPATIBLE FALSE) -else("${PACKAGE_VERSION}" VERSION_LESS "${PACKAGE_FIND_VERSION}" ) -   set(PACKAGE_VERSION_COMPATIBLE TRUE) -   if( "${PACKAGE_FIND_VERSION}" STREQUAL "${PACKAGE_VERSION}") -      set(PACKAGE_VERSION_EXACT TRUE) -   endif( "${PACKAGE_FIND_VERSION}" STREQUAL "${PACKAGE_VERSION}") -endif("${PACKAGE_VERSION}" VERSION_LESS "${PACKAGE_FIND_VERSION}" ) - diff --git a/attic/modules/MacroWriteBasicCMakeVersionFile.cmake b/attic/modules/MacroWriteBasicCMakeVersionFile.cmake deleted file mode 100644 index 6f9e4189..00000000 --- a/attic/modules/MacroWriteBasicCMakeVersionFile.cmake +++ /dev/null @@ -1,22 +0,0 @@ -#  MACRO_WRITE_BASIC_CMAKE_VERSION_FILE( _filename _major _minor _patch) -#    Writes a file for use as <package>ConfigVersion.cmake file to <_filename>. -#    See the documentation of FIND_PACKAGE() for details on this. -#    _filename is the output filename, it should be in the build tree. -#    _major is the major version number of the project to be installed -#    _minor is the minor version number of the project to be installed -#    _patch is the patch version number of the project to be installed -# - -# Copyright (c) 2008, Alexander Neundorf, <neundorf@kde.org> -# -# Redistribution and use is allowed according to the terms of the BSD license. -# For details see the accompanying COPYING-CMAKE-SCRIPTS file. - -get_filename_component(_currentListFileDir ${CMAKE_CURRENT_LIST_FILE} PATH) - -function(MACRO_WRITE_BASIC_CMAKE_VERSION_FILE _filename _major _minor _patch) -   set(PROJECT_VERSION_MAJOR ${_major}) -   set(PROJECT_VERSION_MINOR ${_minor}) -   set(PROJECT_VERSION_PATCH ${_patch}) -   configure_file(${_currentListFileDir}/BasicFindPackageVersion.cmake.in "${_filename}" @ONLY) -endfunction(MACRO_WRITE_BASIC_CMAKE_VERSION_FILE _major _minor _patch) | 
