diff options
author | Sebastian Holtermann <sebholt@xwmw.org> | 2016-11-30 16:09:32 (GMT) |
---|---|---|
committer | Sebastian Holtermann <sebholt@xwmw.org> | 2016-12-06 14:59:27 (GMT) |
commit | 9360e288168b850223285d1fbd695abd33cf26eb (patch) | |
tree | e6f6424d20d857fc2221ceb80eb4938fc4996c04 /Source/cmQtAutoGeneratorInitializer.cxx | |
parent | 8548caa3ee9914f7bd25dba4dadbb1c3a6338253 (diff) | |
download | CMake-9360e288168b850223285d1fbd695abd33cf26eb.zip CMake-9360e288168b850223285d1fbd695abd33cf26eb.tar.gz CMake-9360e288168b850223285d1fbd695abd33cf26eb.tar.bz2 |
QtAutogen: For loop feature test optimization
Diffstat (limited to 'Source/cmQtAutoGeneratorInitializer.cxx')
-rw-r--r-- | Source/cmQtAutoGeneratorInitializer.cxx | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/Source/cmQtAutoGeneratorInitializer.cxx b/Source/cmQtAutoGeneratorInitializer.cxx index 7fbcff3..b150d88 100644 --- a/Source/cmQtAutoGeneratorInitializer.cxx +++ b/Source/cmQtAutoGeneratorInitializer.cxx @@ -755,20 +755,19 @@ void cmQtAutoGeneratorInitializer::InitializeAutogenTarget( || usePRE_BUILD #endif ) { - std::vector<cmSourceFile*> srcFiles; - target->GetConfigCommonSourceFiles(srcFiles); - cmFilePathUuid fpathUuid(makefile); - for (std::vector<cmSourceFile*>::const_iterator fileIt = srcFiles.begin(); - fileIt != srcFiles.end(); ++fileIt) { - cmSourceFile* sf = *fileIt; - std::string absFile = cmsys::SystemTools::GetRealPath(sf->GetFullPath()); - - std::string ext = sf->GetExtension(); - - if (target->GetPropertyAsBool("AUTORCC")) { - if (ext == "qrc" && + if (target->GetPropertyAsBool("AUTORCC")) { + std::vector<cmSourceFile*> srcFiles; + target->GetConfigCommonSourceFiles(srcFiles); + cmFilePathUuid fpathUuid(makefile); + for (std::vector<cmSourceFile*>::const_iterator fileIt = + srcFiles.begin(); + fileIt != srcFiles.end(); ++fileIt) { + cmSourceFile* sf = *fileIt; + if (sf->GetExtension() == "qrc" && !cmSystemTools::IsOn(sf->GetPropertyForUser("SKIP_AUTORCC"))) { { + const std::string absFile = + cmsys::SystemTools::GetRealPath(sf->GetFullPath()); std::string rcc_output_file = GetAutogenTargetBuildDir(target); // Create output directory cmSystemTools::MakeDirectory(rcc_output_file.c_str()); |