find_package-optional-is-quieterΒΆ

  • When the find_package() command was given the OPTIONAL option, and no Find Module is available (or if Module mode has been explicitly disabled with a CONFIG or NO_MODULE option), CMake would report a status message if no candidate package configuration files are found, but would not report anything if any unsuitable package configuration files are found. The OPTIONAL option now suppresses status messages in both instances.