I am using FindBoost in a cmake script to determine if certain components of the boost package are available on the target system.
If so, the script builds examples that use my package with boost. If not, these example are not built and tested. When the target system does not have boost, the user gets the warning: CMake Warning at /usr/share/cmake-3.10/Modules/FindBoost.cmake:567 (message): Imported targets and dependency information not available for Boost version (all versions older than 1.33) Call Stack (most recent call first): /usr/share/cmake-3.10/Modules/FindBoost.cmake:907 (_Boost_COMPONENT_DEPENDENCIES) /usr/share/cmake-3.10/Modules/FindBoost.cmake:1558 (_Boost_MISSING_DEPENDENCIES) CMakeLists.txt:245 (FIND_PACKAGE) This is not a problem because if the user's system does not have boost, they will no be using the case that the examples cover. How do I suppress this warning ? -- 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: https://cmake.org/mailman/listinfo/cmake