[cmake-developers] Setting ExactCase_FOUND in FPHSA

Brad King brad.king at kitware.com
Tue Feb 19 16:20:09 EST 2013


On 02/19/2013 03:54 PM, Matthew Woehlke wrote:
> This sounds like a bug. Why not just fix those find modules not using FPHSA?
> 
> Then you could document in find_package() that ExactCase_FOUND is set if 
> the package is found. (And consider deprecating UpperCase_FOUND.)

Many find modules are distributed outside of CMake.  We cannot control all
of them.  Therefore find_package cannot guarantee anything in module mode.

The _FOUND variable is not the only one that one must read docs before
using.  All other output variables like _LIBRARIES, _LIBRARY_DIRS,
_INCLUDE_DIRS, etc. may have varied names.

-Brad



More information about the cmake-developers mailing list