diff options
author | Stephen Kelly <steveire@gmail.com> | 2014-02-14 09:23:23 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2014-02-24 15:43:25 (GMT) |
commit | d3682d8647789db759270a2f9c96493167468e61 (patch) | |
tree | 4399606aa8e7da24a691aed49584f153dcad1814 /Source/cmNinjaTargetGenerator.cxx | |
parent | 5771f81d91d232a143345dc05835323f36ab7ecc (diff) | |
download | CMake-d3682d8647789db759270a2f9c96493167468e61.zip CMake-d3682d8647789db759270a2f9c96493167468e61.tar.gz CMake-d3682d8647789db759270a2f9c96493167468e61.tar.bz2 |
cmGeneratorTarget: Use a method to access the definition file.
Diffstat (limited to 'Source/cmNinjaTargetGenerator.cxx')
-rw-r--r-- | Source/cmNinjaTargetGenerator.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmNinjaTargetGenerator.cxx b/Source/cmNinjaTargetGenerator.cxx index 900af8d..5f6fc2d 100644 --- a/Source/cmNinjaTargetGenerator.cxx +++ b/Source/cmNinjaTargetGenerator.cxx @@ -498,10 +498,10 @@ cmNinjaTargetGenerator { this->WriteObjectBuildStatement(*si); } - if(!this->GeneratorTarget->ModuleDefinitionFile.empty()) + std::string def = this->GeneratorTarget->GetModuleDefinitionFile(); + if(!def.empty()) { - this->ModuleDefinitionFile = this->ConvertToNinjaPath( - this->GeneratorTarget->ModuleDefinitionFile.c_str()); + this->ModuleDefinitionFile = this->ConvertToNinjaPath(def.c_str()); } { |