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/cmNinjaTargetGenerator.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/cmNinjaTargetGenerator.cxx')
-rw-r--r-- | Source/cmNinjaTargetGenerator.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/cmNinjaTargetGenerator.cxx b/Source/cmNinjaTargetGenerator.cxx index dc2c7a6..5ff4fdb 100644 --- a/Source/cmNinjaTargetGenerator.cxx +++ b/Source/cmNinjaTargetGenerator.cxx @@ -195,9 +195,10 @@ cmNinjaDeps cmNinjaTargetGenerator::ComputeLinkDeps() const std::transform(deps.begin(), deps.end(), result.begin(), MapToNinjaPath()); // Add a dependency on the link definitions file, if any. - if(!this->ModuleDefinitionFile.empty()) + if(this->ModuleDefinitionFile) { - result.push_back(this->ConvertToNinjaPath(this->ModuleDefinitionFile)); + result.push_back(this->ConvertToNinjaPath( + this->ModuleDefinitionFile->GetFullPath())); } // Add a dependency on user-specified manifest files, if any. |