INTERFACE Target: allow (PUBLIC/PRIVATE)_HEADER properties

Also support installing headers on an INTERFACE library.

Signed-off-by: Avraham Shukron <avraham.shukron@gmail.com>
Fixes: #15234
This commit is contained in:
Avraham Shukron
2019-04-06 00:27:04 +03:00
committed by Brad King
parent 4f07fdde26
commit a40f9083dd
9 changed files with 53 additions and 11 deletions

View File

@@ -663,8 +663,7 @@ bool cmInstallCommand::HandleTargetsMode(std::vector<std::string> const& args)
// generators for them.
bool createInstallGeneratorsForTargetFileSets = true;
if (target.IsFrameworkOnApple() ||
target.GetType() == cmStateEnums::INTERFACE_LIBRARY) {
if (target.IsFrameworkOnApple()) {
createInstallGeneratorsForTargetFileSets = false;
}