[cmake-developers] find_package() verbosity

Alexander Neundorf neundorf at kde.org
Tue Aug 26 17:03:45 EDT 2014


On Tuesday, August 26, 2014 10:41:04 Nils Gladitz wrote:
> Are there any official recommendations or opinions on how verbose a find
> module (or package configuration file) should be on success?
> 
> - Find modules using FindPackageHandleStandardArgs report success once.
> 
> - FindBoost.cmake reports success every time.
> 
> - Qt5 package configuration files (and find_package() in CONFIG mode
> specifically) keep quiet on success.

I think the recommendation is to report when it fails, and whenever something 
changes in the successful result, i.e. on the first success and potentially if 
on a later run some additionaly module or something has been found. IOW what 
FindPackageHandleStandardArgs.cmake does.

Alex




More information about the cmake-developers mailing list