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

Method GetMSVCDebugFormatName

Source/cmLocalGenerator.cxx:2996–3014  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2994}
2995
2996cm::optional<std::string> cmLocalGenerator::GetMSVCDebugFormatName(
2997 std::string const& config, cmGeneratorTarget const* target)
2998{
2999 // MSVC debug information format selection is activated by the presence
3000 // of a default whether or not it is overridden by a property.
3001 cm::optional<std::string> msvcDebugInformationFormat;
3002 cmValue msvcDebugInformationFormatDefault = this->Makefile->GetDefinition(
3003 "CMAKE_MSVC_DEBUG_INFORMATION_FORMAT_DEFAULT");
3004 if (cmNonempty(msvcDebugInformationFormatDefault)) {
3005 cmValue msvcDebugInformationFormatValue =
3006 target->GetProperty("MSVC_DEBUG_INFORMATION_FORMAT");
3007 if (!msvcDebugInformationFormatValue) {
3008 msvcDebugInformationFormatValue = msvcDebugInformationFormatDefault;
3009 }
3010 msvcDebugInformationFormat = cmGeneratorExpression::Evaluate(
3011 *msvcDebugInformationFormatValue, this, config, target);
3012 }
3013 return msvcDebugInformationFormat;
3014}
3015
3016cm::optional<cmSwiftCompileMode> cmLocalGenerator::GetSwiftCompileMode(
3017 cmGeneratorTarget const* target, std::string const& config)

Callers 2

AddLanguageFlagsMethod · 0.95
AddPchDependenciesMethod · 0.95

Calls 3

cmNonemptyFunction · 0.85
GetDefinitionMethod · 0.45
GetPropertyMethod · 0.45

Tested by

no test coverage detected