summaryrefslogtreecommitdiffstats
path: root/Source/cmServerProtocol.cxx
diff options
context:
space:
mode:
authorJustin Goshi <jgoshi@microsoft.com>2017-11-10 19:09:24 (GMT)
committerBrad King <brad.king@kitware.com>2017-11-20 19:29:50 (GMT)
commitafd9a339a1d7cbdf9aafff4ee6c454382e923aa9 (patch)
treec156a14bf0278685731e3dc1b8756a0d027f3689 /Source/cmServerProtocol.cxx
parent4d52b46c7046a23948221d4142d768b9ff834e33 (diff)
downloadCMake-afd9a339a1d7cbdf9aafff4ee6c454382e923aa9.zip
CMake-afd9a339a1d7cbdf9aafff4ee6c454382e923aa9.tar.gz
CMake-afd9a339a1d7cbdf9aafff4ee6c454382e923aa9.tar.bz2
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.
Diffstat (limited to 'Source/cmServerProtocol.cxx')
-rw-r--r--Source/cmServerProtocol.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmServerProtocol.cxx b/Source/cmServerProtocol.cxx
index aae0a9d..0bcfe48 100644
--- a/Source/cmServerProtocol.cxx
+++ b/Source/cmServerProtocol.cxx
@@ -942,6 +942,8 @@ static Json::Value DumpTarget(cmGeneratorTarget* target,
Json::Value result = Json::objectValue;
result[kNAME_KEY] = target->GetName();
+ result[kIS_GENERATOR_PROVIDED_KEY] =
+ target->Target->GetIsGeneratorProvided();
result[kTYPE_KEY] = typeName;
result[kSOURCE_DIRECTORY_KEY] = lg->GetCurrentSourceDirectory();
result[kBUILD_DIRECTORY_KEY] = lg->GetCurrentBinaryDirectory();