• Alexander Neundorf's avatar
    find_package: allow <pkg>Config.cmake to set <pkg>_FOUND to FALSE · 16c0c737
    Alexander Neundorf authored
    Before, find_package in Config mode always set Foo_FOUND to true if the
    Config file has been found and could be executed.
    If the Config file itself detected some problem, like a missing dependency,
    it did not have a way to signal to the outside that the package is not working.
    With this patch, if a Config file sets Foo_FOUND to FALSE, this is taken into
    account and not overridden.
cmFindPackageCommand.cxx 82.8 KB