[CMake] QUIET option removes all output of find_package
Nicola Mori
nicolamori at aol.com
Tue Sep 16 13:35:02 EDT 2014
According to the Cmake documentation for find_package:
http://www.cmake.org/cmake/help/v3.0/command/find_package.html
the QUIET option should suppress the output only when a package cannot
be found:
"The QUIET option disables messages if the package cannot be found."
From my experience, QUIET removes all the output, even when the package
has been found. For example in my custom module I print the result of
find using this:
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(ROOT FOUND_VAR ROOT_FOUND
REQUIRED_VARS ROOT_CONFIG_EXECUTABLE
ROOTSYS ROOT_VERSION ROOT_INCLUDE_DIR ROOT_LIBRARIES ROOT_LIBRARY_DIR
VERSION_VAR ROOT_VERSION)
Without the QUIET option, on a successful search I get:
-- Found ROOT: /home/mori/software/install/ROOT_5.34.20/bin/root-config
(found version "5.34.20")
while with QUIET I don't get any output, even when the package has been
found.
Is this the intended behaviour? Maybe I misinterpreted the
documentation or maybe I'm doping something wrong with
find_package_handle_standard_args?
Thanks.
More information about the CMake
mailing list