| 2862 | } |
| 2863 | |
| 2864 | std::vector<std::string> cmMakefile::GetGeneratorConfigs( |
| 2865 | GeneratorConfigQuery mode) const |
| 2866 | { |
| 2867 | cmList configs; |
| 2868 | if (this->GetGlobalGenerator()->IsMultiConfig()) { |
| 2869 | configs.assign(this->GetDefinition("CMAKE_CONFIGURATION_TYPES")); |
| 2870 | } else if (mode != cmMakefile::OnlyMultiConfig) { |
| 2871 | std::string const& buildType = this->GetSafeDefinition("CMAKE_BUILD_TYPE"); |
| 2872 | if (!buildType.empty()) { |
| 2873 | configs.emplace_back(buildType); |
| 2874 | } |
| 2875 | } |
| 2876 | if (mode == cmMakefile::IncludeEmptyConfig && configs.empty()) { |
| 2877 | configs.emplace_back(); |
| 2878 | } |
| 2879 | return std::move(configs.data()); |
| 2880 | } |
| 2881 | |
| 2882 | bool cmMakefile::IsFunctionBlocked(cmListFileFunction const& lff, |
| 2883 | cmExecutionStatus& status) |
no test coverage detected