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/cmGeneratorTarget.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/cmGeneratorTarget.cxx')
-rw-r--r-- | Source/cmGeneratorTarget.cxx | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/Source/cmGeneratorTarget.cxx b/Source/cmGeneratorTarget.cxx index 0f5a7e7..40afc0e 100644 --- a/Source/cmGeneratorTarget.cxx +++ b/Source/cmGeneratorTarget.cxx @@ -2095,12 +2095,18 @@ cmGeneratorTarget::CompileInfo const* cmGeneratorTarget::GetCompileInfo( } //---------------------------------------------------------------------------- -std::string +cmSourceFile const* cmGeneratorTarget::GetModuleDefinitionFile(const std::string& config) const { - std::string data; - IMPLEMENT_VISIT_IMPL(ModuleDefinitionFile, COMMA std::string) - return data; + std::vector<cmSourceFile const*> data; + IMPLEMENT_VISIT_IMPL(ModuleDefinitionFile, + COMMA std::vector<cmSourceFile const*>) + if(!data.empty()) + { + return data.front(); + } + + return 0; } bool cmGeneratorTarget::IsDLLPlatform() const |