[Cmake-commits] [cmake-commits] king committed CMakeLists.txt 1.16 1.17
cmake-commits at cmake.org
cmake-commits at cmake.org
Wed Jan 14 09:34:45 EST 2009
Update of /cvsroot/CMake/CMake/Tests/FindPackageTest
In directory public:/mounts/ram/cvs-serv13423/Tests/FindPackageTest
Modified Files:
CMakeLists.txt
Log Message:
ENH: Test find_package re-find feature
Recently we taught find_package to re-find a package if its
<package>_DIR result variable was set to a location not containing the
package (instead of reporting an error as before). This tests the
feature.
Index: CMakeLists.txt
===================================================================
RCS file: /cvsroot/CMake/CMake/Tests/FindPackageTest/CMakeLists.txt,v
retrieving revision 1.16
retrieving revision 1.17
diff -C 2 -d -r1.16 -r1.17
*** CMakeLists.txt 17 Dec 2008 14:24:05 -0000 1.16
--- CMakeLists.txt 14 Jan 2009 14:34:42 -0000 1.17
***************
*** 50,53 ****
--- 50,56 ----
SET(CMAKE_FIND_APPBUNDLE FIRST)
+ # Set the wrong answer for a find to make sure it re-finds.
+ set(VersionedA_DIR ${CMAKE_CURRENT_SOURCE_DIR}/lib/cmake/zot-4.0)
+
# Look for packages with new-style signatures.
FIND_PACKAGE(foo NO_MODULE)
More information about the Cmake-commits
mailing list