diff options
author | Tim Grothe <Tim.Grothe@gmail.com> | 2015-11-02 14:24:25 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-11-04 14:15:14 (GMT) |
commit | 247c168b987a8c9c479112c13078aa2e5db37773 (patch) | |
tree | 35fd3e112fc2595018f4ff825d21b37675bfe715 /Source/cmVisualStudio10TargetGenerator.cxx | |
parent | adfc8a677e51772d87a3e050477c60ce0b70288f (diff) | |
download | CMake-247c168b987a8c9c479112c13078aa2e5db37773.zip CMake-247c168b987a8c9c479112c13078aa2e5db37773.tar.gz CMake-247c168b987a8c9c479112c13078aa2e5db37773.tar.bz2 |
Refactor `.def` file lookup
Return a `cmSourceFile const*` from GetModuleDefinitionFile so that
callers can get more information than just the path to the file.
Diffstat (limited to 'Source/cmVisualStudio10TargetGenerator.cxx')
-rw-r--r-- | Source/cmVisualStudio10TargetGenerator.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/cmVisualStudio10TargetGenerator.cxx b/Source/cmVisualStudio10TargetGenerator.cxx index 7da00fa..9e2dc65 100644 --- a/Source/cmVisualStudio10TargetGenerator.cxx +++ b/Source/cmVisualStudio10TargetGenerator.cxx @@ -2642,10 +2642,11 @@ cmVisualStudio10TargetGenerator::ComputeLinkOptions(std::string const& config) if(this->MSTools) { - std::string def = this->GeneratorTarget->GetModuleDefinitionFile(""); - if(!def.empty()) + if (cmSourceFile const* defsrc = + this->GeneratorTarget->GetModuleDefinitionFile("")) { - linkOptions.AddFlag("ModuleDefinitionFile", def.c_str()); + linkOptions.AddFlag("ModuleDefinitionFile", + defsrc->GetFullPath().c_str()); } linkOptions.AppendFlag("IgnoreSpecificDefaultLibraries", "%(IgnoreSpecificDefaultLibraries)"); |