Precompile Headers: Add REUSE_FROM signature

Add the ability to share precompiled headers artifacts between
targets.

Fixes: #19659
This commit is contained in:
Cristian Adam
2019-08-30 16:21:19 +02:00
parent 1ac4e0ef1b
commit 729d997f10
19 changed files with 345 additions and 54 deletions
+13
View File
@@ -65,6 +65,19 @@ bool cmTargetPropCommandBase::HandleArguments(
++argIndex;
}
if ((flags & PROCESS_REUSE_FROM) && args[argIndex] == "REUSE_FROM") {
if (args.size() != 3) {
this->SetError("called with incorrect number of arguments");
return false;
}
++argIndex;
this->Target->SetProperty("PRECOMPILE_HEADERS_REUSE_FROM",
args[argIndex].c_str());
++argIndex;
}
this->Property = prop;
while (argIndex < args.size()) {