mirror of
https://github.com/reactos/CMake.git
synced 2024-12-13 22:58:41 +00:00
server-mode: Do not crash when running into INTERFACE_LIBRARY
Closes: #16539
This commit is contained in:
parent
12bea47fa4
commit
33e628ee80
@ -720,12 +720,16 @@ static Json::Value DumpTarget(cmGeneratorTarget* target,
|
||||
|
||||
Json::Value result = Json::objectValue;
|
||||
result[kNAME_KEY] = target->GetName();
|
||||
|
||||
result[kTYPE_KEY] = typeName;
|
||||
result[kFULL_NAME_KEY] = target->GetFullName(config);
|
||||
result[kSOURCE_DIRECTORY_KEY] = lg->GetCurrentSourceDirectory();
|
||||
result[kBUILD_DIRECTORY_KEY] = lg->GetCurrentBinaryDirectory();
|
||||
|
||||
if (type == cmState::INTERFACE_LIBRARY) {
|
||||
return result;
|
||||
}
|
||||
|
||||
result[kFULL_NAME_KEY] = target->GetFullName(config);
|
||||
|
||||
if (target->HaveWellDefinedOutputFiles()) {
|
||||
Json::Value artifacts = Json::arrayValue;
|
||||
artifacts.append(target->GetFullPath(config, false));
|
||||
|
Loading…
Reference in New Issue
Block a user