diff options
author | Brad King <brad.king@kitware.com> | 2009-01-14 14:34:42 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2009-01-14 14:34:42 (GMT) |
commit | bb2c08546c8ba53792e6de0be6e77149754025a8 (patch) | |
tree | 4e71aed3664d49ca278c5fed785946a20f7cb751 /Tests/FindPackageTest/CMakeLists.txt | |
parent | 914740cfabc30165fdddede85f54f3c526ce80e7 (diff) | |
download | CMake-bb2c08546c8ba53792e6de0be6e77149754025a8.zip CMake-bb2c08546c8ba53792e6de0be6e77149754025a8.tar.gz CMake-bb2c08546c8ba53792e6de0be6e77149754025a8.tar.bz2 |
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.
Diffstat (limited to 'Tests/FindPackageTest/CMakeLists.txt')
-rw-r--r-- | Tests/FindPackageTest/CMakeLists.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Tests/FindPackageTest/CMakeLists.txt b/Tests/FindPackageTest/CMakeLists.txt index fe901ad..f82f4a1 100644 --- a/Tests/FindPackageTest/CMakeLists.txt +++ b/Tests/FindPackageTest/CMakeLists.txt @@ -49,6 +49,9 @@ ENDFOREACH(p) SET(CMAKE_FIND_FRAMEWORK LAST) 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) FIND_PACKAGE(Foo CONFIGS FooConfig.cmake) |