diff options
author | Brad King <brad.king@kitware.com> | 2018-01-22 15:16:08 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2018-01-22 15:16:16 (GMT) |
commit | a629c338a1a7a09f827a185af4f8586fd8dd570d (patch) | |
tree | 79d20ced20c16e107d6d2cd024af57e3dbfeb3bf /Source | |
parent | 1f35d3f20a0d7929fb8efc19b6bdc546c16a2c71 (diff) | |
parent | 7c525c84166d2d45933fb9907682d4f834392520 (diff) | |
download | CMake-a629c338a1a7a09f827a185af4f8586fd8dd570d.zip CMake-a629c338a1a7a09f827a185af4f8586fd8dd570d.tar.gz CMake-a629c338a1a7a09f827a185af4f8586fd8dd570d.tar.bz2 |
Merge topic 'genex-output-known-extension'
7c525c84 genex: generated files have known extensions
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !1669
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmGeneratorExpressionEvaluationFile.cxx | 4 |
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( |