diff options
author | Deniz Bahadir <dbahadir@benocs.com> | 2020-09-30 13:04:39 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-11-19 16:29:27 (GMT) |
commit | e01527619f766777cad5f0b27422cb67cecc0c43 (patch) | |
tree | 40a7bdcc82d5067b01629c647754816374d3f0eb | |
parent | 75cb8615e9fa1b81c8502d369c44849510e701a6 (diff) | |
download | CMake-e01527619f766777cad5f0b27422cb67cecc0c43.zip CMake-e01527619f766777cad5f0b27422cb67cecc0c43.tar.gz CMake-e01527619f766777cad5f0b27422cb67cecc0c43.tar.bz2 |
Simplify code by calling a function directly instead of duplicating it
-rw-r--r-- | Source/cmGeneratorExpressionEvaluationFile.cxx | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/Source/cmGeneratorExpressionEvaluationFile.cxx b/Source/cmGeneratorExpressionEvaluationFile.cxx index 9e5023d..3c17b54 100644 --- a/Source/cmGeneratorExpressionEvaluationFile.cxx +++ b/Source/cmGeneratorExpressionEvaluationFile.cxx @@ -15,7 +15,6 @@ #include "cmMakefile.h" #include "cmMessageType.h" #include "cmSourceFile.h" -#include "cmSourceFileLocationKind.h" #include "cmSystemTools.h" cmGeneratorExpressionEvaluationFile::cmGeneratorExpressionEvaluationFile( @@ -99,11 +98,7 @@ void cmGeneratorExpressionEvaluationFile::CreateOutputFile( for (std::string const& le : enabledLanguages) { std::string const name = this->GetOutputFileName(lg, target, config, le); - cmSourceFile* sf = lg->GetMakefile()->GetOrCreateSource( - name, false, cmSourceFileLocationKind::Known); - // Tell TraceDependencies that the file is not expected to exist - // on disk yet. We generate it after that runs. - sf->SetProperty("GENERATED", "1"); + cmSourceFile* sf = lg->GetMakefile()->GetOrCreateGeneratedSource(name); // Tell the build system generators that there is no build rule // to generate the file. |