| 2016 | } |
| 2017 | |
| 2018 | void cmGlobalGenerator::FinalizeTargetConfiguration() |
| 2019 | { |
| 2020 | std::vector<std::string> const langs = |
| 2021 | this->CMakeInstance->GetState()->GetEnabledLanguages(); |
| 2022 | |
| 2023 | // Construct per-target generator information. |
| 2024 | for (auto const& mf : this->Makefiles) { |
| 2025 | cmBTStringRange const compileDefinitions = |
| 2026 | mf->GetCompileDefinitionsEntries(); |
| 2027 | for (auto& target : mf->GetTargets()) { |
| 2028 | cmTarget* t = &target.second; |
| 2029 | t->FinalizeTargetConfiguration(compileDefinitions); |
| 2030 | } |
| 2031 | |
| 2032 | // The standard include directories for each language |
| 2033 | // should be treated as system include directories. |
| 2034 | std::set<std::string> standardIncludesSet; |
| 2035 | for (std::string const& li : langs) { |
| 2036 | std::string const standardIncludesVar = |
| 2037 | cmStrCat("CMAKE_", li, "_STANDARD_INCLUDE_DIRECTORIES"); |
| 2038 | std::string const& standardIncludesStr = |
| 2039 | mf->GetSafeDefinition(standardIncludesVar); |
| 2040 | cmList standardIncludesList{ standardIncludesStr }; |
| 2041 | standardIncludesSet.insert(standardIncludesList.begin(), |
| 2042 | standardIncludesList.end()); |
| 2043 | } |
| 2044 | mf->AddSystemIncludeDirectories(standardIncludesSet); |
| 2045 | } |
| 2046 | } |
| 2047 | |
| 2048 | void cmGlobalGenerator::CreateGeneratorTargets( |
| 2049 | TargetTypes targetTypes, cmMakefile* mf, cmLocalGenerator* lg, |
no test coverage detected