• Brad King's avatar
    Fix find_package() when <pkg>_DIR is wrong · 71910b3f
    Brad King authored
    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.
    71910b3f
Name
Last commit
Last update
..
A Loading commit data...
B Loading commit data...
Baz 1.1 Loading commit data...
Baz 1.2/CMake Loading commit data...
Exporter Loading commit data...
TApp.app/Contents/Resources Loading commit data...
TFramework.framework/Versions/A/Resources Loading commit data...
include Loading commit data...
lib Loading commit data...
CMakeLists.txt Loading commit data...
FindPackageTest.cxx Loading commit data...
FindRecursiveA.cmake Loading commit data...
FindRecursiveB.cmake Loading commit data...
FindRecursiveC.cmake Loading commit data...
FindVersionTestA.cmake Loading commit data...
FindVersionTestB.cmake Loading commit data...
FindVersionTestC.cmake Loading commit data...
FindVersionTestD.cmake Loading commit data...