find_package(REQUIRED QUIET) behavior
What is the intended behavior? It appears as though packages disagree.
FindBoost always errors out if
REQUIRED is present, but some others apparently effectively ignore
QUIET is specified. The documentation doesn't give much clarity here:
variables and :ref:`Imported Targets` documented by the package itself. The ``QUIET`` option disables messages if the package cannot be found. The ``MODULE`` option disables the second signature documented below. The ``REQUIRED`` option stops processing with an error message if the package cannot be found.
which could be read as "
QUIET disables messages and therefore prevents
REQUIRED from saying anything (and therefore doing
message(FATAL_ERROR)" or as "
REQUIRED says to use an error message, nevermind that
QUIET is there".
Questions to answer:
- Which is more "popular" in find modules within CMake?
- Which is the intended way? Let's update the documentation with this decision.
- Can CMake detect modules which were passed
X_FOUNDto false-y and error on the module? Does this need a policy?