mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-27 09:29:15 -05:00
Merge topic 'src-COMPILE_FLAGS-genex'
5dec0a23 server-mode: Fix per-source COMPILE_FLAGS genex evaluation
This commit is contained in:
@@ -672,8 +672,9 @@ static Json::Value DumpSourceFilesList(
|
||||
std::string compileFlags = ld.Flags;
|
||||
if (const char* cflags = file->GetProperty("COMPILE_FLAGS")) {
|
||||
cmGeneratorExpression ge;
|
||||
auto cge = ge.Parse(cflags);
|
||||
const char* processed =
|
||||
ge.Parse(cflags)->Evaluate(target->GetLocalGenerator(), config);
|
||||
cge->Evaluate(target->GetLocalGenerator(), config);
|
||||
lg->AppendFlags(compileFlags, processed);
|
||||
}
|
||||
fileData.Flags = compileFlags;
|
||||
|
||||
Reference in New Issue
Block a user