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.


--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake

Reply via email to