mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-12 17:19:05 -05:00
@@ -6,6 +6,7 @@
|
||||
#include <ostream>
|
||||
#include <utility>
|
||||
|
||||
#include "cmGeneratorExpression.h"
|
||||
#include "cmGeneratorTarget.h"
|
||||
#include "cmGlobalXCodeGenerator.h"
|
||||
#include "cmMakefile.h"
|
||||
@@ -134,3 +135,22 @@ void cmLocalXCodeGenerator::ComputeObjectFilenames(
|
||||
si.second = objectName;
|
||||
}
|
||||
}
|
||||
|
||||
void cmLocalXCodeGenerator::AddXCConfigSources(cmGeneratorTarget* target)
|
||||
{
|
||||
auto xcconfig = target->GetProperty("XCODE_XCCONFIG");
|
||||
if (!xcconfig) {
|
||||
return;
|
||||
}
|
||||
auto configs = target->Makefile->GetGeneratorConfigs(
|
||||
cmMakefile::IncludeEmptyConfig);
|
||||
|
||||
for (auto& config : configs) {
|
||||
auto file = cmGeneratorExpression::Evaluate(
|
||||
xcconfig,
|
||||
this, config);
|
||||
if (!file.empty()) {
|
||||
target->AddSource(file);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user