diff options
author | Alex Neundorf <neundorf@kde.org> | 2012-03-10 10:21:05 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2012-03-13 20:56:23 (GMT) |
commit | 16c0c7376c4ab26a4f0ec667f5888ba746a0617e (patch) | |
tree | 614254f88346e8db07c02227f34ed8e8f9be1f53 /Tests/FindPackageTest/cmake/SetFoundFALSEConfig.cmake | |
parent | e8f1d7f031e7300097d347e26251730422c85dc8 (diff) | |
download | CMake-16c0c7376c4ab26a4f0ec667f5888ba746a0617e.zip CMake-16c0c7376c4ab26a4f0ec667f5888ba746a0617e.tar.gz CMake-16c0c7376c4ab26a4f0ec667f5888ba746a0617e.tar.bz2 |
find_package: allow <pkg>Config.cmake to set <pkg>_FOUND to FALSE
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.
Alex
Diffstat (limited to 'Tests/FindPackageTest/cmake/SetFoundFALSEConfig.cmake')
0 files changed, 0 insertions, 0 deletions