summaryrefslogtreecommitdiffstats
path: root/Source/cmVisualStudio10TargetGenerator.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2014-02-14 09:23:23 (GMT)
committerStephen Kelly <steveire@gmail.com>2014-02-24 15:43:25 (GMT)
commitd3682d8647789db759270a2f9c96493167468e61 (patch)
tree4399606aa8e7da24a691aed49584f153dcad1814 /Source/cmVisualStudio10TargetGenerator.cxx
parent5771f81d91d232a143345dc05835323f36ab7ecc (diff)
downloadCMake-d3682d8647789db759270a2f9c96493167468e61.zip
CMake-d3682d8647789db759270a2f9c96493167468e61.tar.gz
CMake-d3682d8647789db759270a2f9c96493167468e61.tar.bz2
cmGeneratorTarget: Use a method to access the definition file.
Diffstat (limited to 'Source/cmVisualStudio10TargetGenerator.cxx')
-rw-r--r--Source/cmVisualStudio10TargetGenerator.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmVisualStudio10TargetGenerator.cxx b/Source/cmVisualStudio10TargetGenerator.cxx
index ed7e243..d760b3f 100644
--- a/Source/cmVisualStudio10TargetGenerator.cxx
+++ b/Source/cmVisualStudio10TargetGenerator.cxx
@@ -1666,10 +1666,10 @@ cmVisualStudio10TargetGenerator::ComputeLinkOptions(std::string const& config)
linkOptions.AddFlag("ImportLibrary", imLib.c_str());
linkOptions.AddFlag("ProgramDataBaseFile", pdb.c_str());
linkOptions.Parse(flags.c_str());
- if(!this->GeneratorTarget->ModuleDefinitionFile.empty())
+ std::string def = this->GeneratorTarget->GetModuleDefinitionFile();
+ if(!def.empty())
{
- linkOptions.AddFlag("ModuleDefinitionFile",
- this->GeneratorTarget->ModuleDefinitionFile.c_str());
+ linkOptions.AddFlag("ModuleDefinitionFile", def.c_str());
}
this->LinkOptions[config] = pOptions.release();