[cmake-commits] king committed SuffixTestConfigVersion.cmake NONE 1.1
cmake-commits at cmake.org
cmake-commits at cmake.org
Mon Jan 28 20:38:50 EST 2008
Update of /cvsroot/CMake/CMake/Tests/FindPackageTest/lib/suffix/test
In directory public:/mounts/ram/cvs-serv17606/Tests/FindPackageTest/lib/suffix/test
Added Files:
SuffixTestConfigVersion.cmake
Log Message:
ENH: Added version support to Config mode of find_package command.
- Added EXACT option to request an exact version.
- Enforce version using check provided by package.
- Updated FindPackageTest to test versioning in config mode.
--- NEW FILE: SuffixTestConfigVersion.cmake ---
SET(PACKAGE_VERSION 1.2)
IF("${PACKAGE_FIND_VERSION_MAJOR}" EQUAL 1)
SET(PACKAGE_VERSION_COMPATIBLE 1)
IF("${PACKAGE_FIND_VERSION_MINOR}" EQUAL 2)
SET(PACKAGE_VERSION_EXACT 1)
ENDIF("${PACKAGE_FIND_VERSION_MINOR}" EQUAL 2)
ENDIF("${PACKAGE_FIND_VERSION_MAJOR}" EQUAL 1)
More information about the Cmake-commits
mailing list