Hi, On 12.03.19 06:37, Steve Keller wrote:
> How can I build a module in a subdirectory automatically if a required > package is available, but not fail if it's not. Say I have a > top-level CMakeLists.txt with With my Debian Developer hat on: please also add a mechanism to manually specify whether the optional component should be built. If the dependency changes and suddenly a component goes missing without triggering a build failure, that can be rather annoying for users. Without a package system, this also means that old files may stick around after installation, so your program should be aware that installed plugins could be built against an older API and weren't updated during the last install run. Simon
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: https://cmake.org/mailman/listinfo/cmake