CMake/Tests/FindPackageTest
Brad King 71910b3fd4 Fix find_package() when <pkg>_DIR is wrong
When <pkg>_DIR is set to an incorrect version we search again and store
the result in the variable, even if it is <pkg>_DIR-NOTFOUND.

There was a bug in the case when the new search does not find anything
and the old value came from a cache entry with UNINITALIZED type.  The
command used to try to load a package configuration file from the last
place searched, and would leave the old wrong value in the entry.  This
commit fixes the behavior to avoid trying to load a missing file and to
set the value to <pkg>_DIR-NOTFOUND as expected.
2009-10-07 14:37:30 -04:00
..
A ENH: Add test for new find_* command HINTS option. 2008-06-09 15:09:14 -04:00
B ENH: Add test for new find_* command HINTS option. 2008-06-09 15:09:14 -04:00
Baz 1.1 ENH: Teach find_package about more install dirs 2008-12-17 09:24:05 -05:00
Baz 1.2/CMake ENH: Teach find_package about more install dirs 2008-12-17 09:24:05 -05:00
Exporter Test the user package registry 2009-09-01 14:05:42 -04:00
TApp.app/Contents/Resources ENH: Updated FindPackageTest to test new find_package command features. 2008-01-17 09:06:36 -05:00
TFramework.framework/Versions/A/Resources ENH: Updated FindPackageTest to test new find_package command features. 2008-01-17 09:06:36 -05:00
include ENH: add support for CMAKE_FIND_PREFIX_PATH as discussed with Brad. 2007-10-26 09:55:40 -04:00
lib ENH: Strengthen FindPackageTest version check 2008-12-16 09:13:39 -05:00
CMakeLists.txt Fix find_package() when <pkg>_DIR is wrong 2009-10-07 14:37:30 -04:00
FindPackageTest.cxx ENH: Added FindPackageTest to improve coverage. 2003-07-24 11:33:06 -04:00
FindRecursiveA.cmake ENH: Remove implicit NO_MODULE when recursing 2008-10-08 10:56:23 -04:00
FindRecursiveB.cmake ENH: Help recursive find_package calls in modules 2008-10-03 10:40:07 -04:00
FindRecursiveC.cmake ENH: Help recursive find_package calls in modules 2008-10-03 10:40:07 -04:00
FindVersionTestA.cmake ENH: Improve find_package version numbering 2008-09-10 10:11:48 -04:00
FindVersionTestB.cmake ENH: Improve find_package version numbering 2008-09-10 10:11:48 -04:00
FindVersionTestC.cmake ENH: Improve find_package version numbering 2008-09-10 10:11:48 -04:00
FindVersionTestD.cmake ENH: Improve find_package version numbering 2008-09-10 10:11:48 -04:00