[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
Tue Dec 16 09:13:42 EST 2008
Update of /cvsroot/CMake/CMake/Tests/FindPackageTest/lib/cmake/zot-4.0
In directory public:/mounts/ram/cvs-serv23487/Tests/FindPackageTest/lib/cmake/zot-4.0
Added Files:
zot-config-version.cmake zot-config.cmake
Log Message:
ENH: Strengthen FindPackageTest version check
The previous change to test finding in lib/cmake/<name>* weakened the
versioned find tests. Since the lib/cmake paths are searched before
lib/<name>* paths the previous change skipped requiring the command to
ignore zot-3.0 when finding zot-3.1. This change restores that and adds
zot-4.0 to test the lib/cmake path.
--- NEW FILE: zot-config.cmake ---
# Test config file.
--- NEW FILE: zot-config-version.cmake ---
SET(PACKAGE_VERSION 4.0)
IF("${PACKAGE_FIND_VERSION_MAJOR}" EQUAL 4)
SET(PACKAGE_VERSION_COMPATIBLE 1)
IF("${PACKAGE_FIND_VERSION_MINOR}" EQUAL 0)
SET(PACKAGE_VERSION_EXACT 1)
ENDIF("${PACKAGE_FIND_VERSION_MINOR}" EQUAL 0)
ENDIF("${PACKAGE_FIND_VERSION_MAJOR}" EQUAL 4)
More information about the Cmake-commits
mailing list