diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-10-24 12:58:23 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-10-27 06:44:22 (GMT) |
commit | 780bff5279c6c2d356e5c7726b656bd9c68532b8 (patch) | |
tree | 0a5ba9e89c83cf4364d48c088aba4e2eb24251c9 /Source/cmGlobalKdevelopGenerator.cxx | |
parent | 6bd7bd1e06fcf92d40c762f2713626d125cb8f87 (diff) | |
download | CMake-780bff5279c6c2d356e5c7726b656bd9c68532b8.zip CMake-780bff5279c6c2d356e5c7726b656bd9c68532b8.tar.gz CMake-780bff5279c6c2d356e5c7726b656bd9c68532b8.tar.bz2 |
cmake: Store hardcoded lists of sources and headers
Don't duplicate this in each cmMakefile.
Diffstat (limited to 'Source/cmGlobalKdevelopGenerator.cxx')
-rw-r--r-- | Source/cmGlobalKdevelopGenerator.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/cmGlobalKdevelopGenerator.cxx b/Source/cmGlobalKdevelopGenerator.cxx index 7c6c48c..018ab24 100644 --- a/Source/cmGlobalKdevelopGenerator.cxx +++ b/Source/cmGlobalKdevelopGenerator.cxx @@ -105,6 +105,9 @@ bool cmGlobalKdevelopGenerator std::set<std::string> files; std::string tmp; + std::vector<std::string> hdrExts = + this->GlobalGenerator->GetCMakeInstance()->GetHeaderExtensions(); + for (std::vector<cmLocalGenerator*>::const_iterator it=lgs.begin(); it!=lgs.end(); it++) { @@ -160,8 +163,7 @@ bool cmGlobalKdevelopGenerator // check if there's a matching header around for(std::vector<std::string>::const_iterator - ext = makefile->GetHeaderExtensions().begin(); - ext != makefile->GetHeaderExtensions().end(); ++ext) + ext = hdrExts.begin(); ext != hdrExts.end(); ++ext) { std::string hname=headerBasename; hname += "."; |