From 18ce97c4a20b7da4e11006ad80f17cb55e128db1 Mon Sep 17 00:00:00 2001 From: Nick Lewis Date: Mon, 1 Feb 2016 10:01:39 +0000 Subject: install: Add EXCLUDE_FROM_ALL option (#14921) Let us take an example of a project that has some tests in a component that need to be installed into a dedicated test package. The user expectation is that the result could be achieved by typing the following: make make tests make install DESTDIR=/testpkgs make install-tests However this results in test components in the default installation as well as the testpkg. Add an EXCLUDE_FROM_ALL option to the install() command to tell it that the installation rule should not be included unless its component is explicitly specified for installation. --- Source/cmInstallTargetGenerator.h | 1 + 1 file changed, 1 insertion(+) (limited to 'Source/cmInstallTargetGenerator.h') diff --git a/Source/cmInstallTargetGenerator.h b/Source/cmInstallTargetGenerator.h index 18b3130825..46b4532122 100644 --- a/Source/cmInstallTargetGenerator.h +++ b/Source/cmInstallTargetGenerator.h @@ -28,6 +28,7 @@ public: std::vector const& configurations, const char* component, MessageLevel message, + bool exclude_from_all, bool optional ); virtual ~cmInstallTargetGenerator(); -- cgit v1.2.1