summaryrefslogtreecommitdiffstats
path: root/Source/cmGeneratorExpressionEvaluationFile.cxx
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2018-01-17 18:49:30 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2018-01-18 16:11:19 (GMT)
commit7c525c84166d2d45933fb9907682d4f834392520 (patch)
treef44e32da1bc15596f8798e067db6b900cce93bca /Source/cmGeneratorExpressionEvaluationFile.cxx
parentaf30899cb4431d6712fea5ac09215a92b3f16ccb (diff)
downloadCMake-7c525c84166d2d45933fb9907682d4f834392520.zip
CMake-7c525c84166d2d45933fb9907682d4f834392520.tar.gz
CMake-7c525c84166d2d45933fb9907682d4f834392520.tar.bz2
genex: generated files have known extensions
Diffstat (limited to 'Source/cmGeneratorExpressionEvaluationFile.cxx')
-rw-r--r--Source/cmGeneratorExpressionEvaluationFile.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmGeneratorExpressionEvaluationFile.cxx b/Source/cmGeneratorExpressionEvaluationFile.cxx
index 87b6b34..c988969 100644
--- a/Source/cmGeneratorExpressionEvaluationFile.cxx
+++ b/Source/cmGeneratorExpressionEvaluationFile.cxx
@@ -13,6 +13,7 @@
#include "cmLocalGenerator.h"
#include "cmMakefile.h"
#include "cmSourceFile.h"
+#include "cmSourceFileLocationKind.h"
#include "cmSystemTools.h"
#include "cmake.h"
@@ -102,7 +103,8 @@ void cmGeneratorExpressionEvaluationFile::CreateOutputFile(
for (std::string const& le : enabledLanguages) {
std::string name = this->OutputFileExpr->Evaluate(
lg, config, false, nullptr, nullptr, nullptr, le);
- cmSourceFile* sf = lg->GetMakefile()->GetOrCreateSource(name);
+ cmSourceFile* sf = lg->GetMakefile()->GetOrCreateSource(
+ name, false, cmSourceFileLocationKind::Known);
sf->SetProperty("GENERATED", "1");
gg->SetFilenameTargetDepends(