[Cmake-commits] [cmake-commits] king committed zot-config-version.cmake NONE 1.1 zot-config.cmake NONE 1.1

cmake-commits at cmake.org cmake-commits at cmake.org
Fri Oct 3 10:41:17 EDT 2008


Update of /cvsroot/CMake/CMake/Tests/FindPackageTest/lib/zot
In directory public:/mounts/ram/cvs-serv15679/Tests/FindPackageTest/lib/zot

Added Files:
	zot-config-version.cmake zot-config.cmake 
Log Message:
ENH: Add UNSUITABLE result to package version test

Package version test files may now declare that they are unsuitable for
use with the project testing them.  This is important when the version
being tested does not provide a compatible ABI with the project target
environment.


--- NEW FILE: zot-config.cmake ---
# Test config file that is unsuitable.
MESSAGE(FATAL_ERROR "Unsuitable version of zot was found")

--- NEW FILE: zot-config-version.cmake ---
# This version should never, ever be used.
SET(PACKAGE_VERSION_UNSUITABLE 1)
SET(PACKAGE_VERSION 3.1)
IF("${PACKAGE_FIND_VERSION_MAJOR}" EQUAL 3)
  SET(PACKAGE_VERSION_COMPATIBLE 1)
  IF("${PACKAGE_FIND_VERSION_MINOR}" EQUAL 1)
    SET(PACKAGE_VERSION_EXACT 1)
  ENDIF("${PACKAGE_FIND_VERSION_MINOR}" EQUAL 1)
ENDIF("${PACKAGE_FIND_VERSION_MAJOR}" EQUAL 3)




More information about the Cmake-commits mailing list