server: return whether or not a target is generator provided

Some generators auto-generate targets. For example VS generators create
the ALL_BUILD target. Add the ability to mark targets as generator
provided and return that info through cmake-server codemodel.
This commit is contained in:
Justin Goshi
2017-11-10 11:09:24 -08:00
committed by Brad King
parent 4d52b46c70
commit afd9a339a1
13 changed files with 55 additions and 33 deletions
+2 -2
View File
@@ -218,8 +218,8 @@ void CCONV cmAddUtilityCommand(void* arg, const char* utilityName,
}
// Pass the call to the makefile instance.
mf->AddUtilityCommand(utilityName, (all ? false : true), nullptr, depends2,
commandLines);
mf->AddUtilityCommand(utilityName, cmMakefile::TargetOrigin::Project,
(all ? false : true), nullptr, depends2, commandLines);
}
void CCONV cmAddCustomCommand(void* arg, const char* source,
const char* command, int numArgs,