mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-27 09:29:15 -05:00
Precompile Headers: Add REUSE_FROM signature
Add the ability to share precompiled headers artifacts between targets. Fixes: #19659
This commit is contained in:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user