Hi CMake fellows, I have two pieces of software. Software A is an optional dependency of B. Following the way CMake intends, A provides a a-config.cmake. B does not have a FindB.cmake because A provides the config file [1]. B has a UseB.cmake which calls find_package(A). This works well in the case A is installed and found.
But if A is not installed, find_package generates an annoying and disruptive warning message. I always check what went wrong to simply find out, that I have not provided the path to A, just as I wanted. I would prefer to get a single line stating "-- Could NOT find A" I tried to use QUIET for find_package, but then I get no information at all, even for the summary it is suppressed. - Is the verbose warning emitted on purpose? - Is there a workaround? - Should I open a bug / write a patch? Thanks for any hints, Christoph [1] http://www.cmake.org/pipermail/cmake/2011-April/043737.html -- ... as Sir Cyril Hinshelwood has observed ...fluid dynamicists were divided into hydraulic engineers who observed things that could not be explained and mathematicians who explained things that could not be observed. -- James Lighthill ********************************************* CMWR 2014: 10th - 13th June 2014 in Stuttgart Please visit www.cmwr14.de *********************************************
signature.asc
Description: OpenPGP digital signature
-- 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://www.cmake.org/mailman/listinfo/cmake
