MCPcopy Create free account
hub / github.com/Kitware/CMake / WritePublicProjectContentOptions

Method WritePublicProjectContentOptions

Source/cmVisualStudio10TargetGenerator.cxx:3237–3258  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3235}
3236
3237void cmVisualStudio10TargetGenerator::WritePublicProjectContentOptions(
3238 Elem& e0)
3239{
3240 cmStateEnums::TargetType ttype = this->GeneratorTarget->GetType();
3241 if (ttype != cmStateEnums::SHARED_LIBRARY) {
3242 return;
3243 }
3244 if (this->ProjectType != VsProjectType::vcxproj) {
3245 return;
3246 }
3247
3248 Elem e1(e0, "PropertyGroup");
3249 for (std::string const& config : this->Configurations) {
3250 if (this->GeneratorTarget->HaveCxx20ModuleSources() &&
3251 this->GeneratorTarget->HaveCxxModuleSupport(config) ==
3252 cmGeneratorTarget::Cxx20SupportLevel::Supported) {
3253 std::string const cond = this->CalcCondition(config);
3254 // For DLL projects, we export all BMIs for now
3255 e1.WritePlatformConfigTag("AllProjectBMIsArePublic", cond, "true");
3256 }
3257 }
3258}
3259
3260void cmVisualStudio10TargetGenerator::OutputLinkIncremental(
3261 Elem& e1, std::string const& configName)

Callers 1

Calls 5

CalcConditionMethod · 0.95
HaveCxxModuleSupportMethod · 0.80
GetTypeMethod · 0.45

Tested by

no test coverage detected