The following issue has been SUBMITTED. ====================================================================== http://public.kitware.com/Bug/view.php?id=14921 ====================================================================== Reported By: Nick Lewis Assigned To: ====================================================================== Project: CMake Issue ID: 14921 Category: CMake Reproducibility: always Severity: feature Priority: normal Status: new ====================================================================== Date Submitted: 2014-05-19 04:47 EDT Last Modified: 2014-05-19 04:47 EDT ====================================================================== Summary: No way to exclude a component install() from a full installation Description: There is currently no way to exclude a component install() from a full installation. Current workarounds using OPTIONAL do not work reliably because they depend on previous builds and on the order execution of the build and install commands for the components and the default target
Steps to Reproduce: make make tests make install DESTDIR=/testpkgs make install-tests This results in test components in the default installation as well as the testpkg Judging by questions on the mail list, users typically try to overcome this problem by adding the unsupported EXCLUDE_FROM_ALL keyword to the install command Additional Information: patch attached that adds support for EXCLUDE_FROM_ALL to the install() command. ====================================================================== Issue History Date Modified Username Field Change ====================================================================== 2014-05-19 04:47 Nick Lewis New Issue 2014-05-19 04:47 Nick Lewis File Added: cmake_install_exclude.patch ====================================================================== -- 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/cgi-bin/mailman/listinfo/cmake-developers