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

Method CalcCondition

Source/cmVisualStudio10TargetGenerator.cxx:317–333  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

315cmVisualStudio10TargetGenerator::~cmVisualStudio10TargetGenerator() = default;
316
317std::string cmVisualStudio10TargetGenerator::CalcCondition(
318 std::string const& config) const
319{
320 std::ostringstream oss;
321 oss << "'$(Configuration)|$(Platform)'=='" << config << '|' << this->Platform
322 << '\'';
323 // handle special case for 32 bit C# targets
324 if (this->ProjectType == VsProjectType::csproj &&
325 this->Platform == "Win32"_s) {
326 oss << " Or "
327 "'$(Configuration)|$(Platform)'=='"
328 << config
329 << "|x86"
330 "'";
331 }
332 return oss.str();
333}
334
335void cmVisualStudio10TargetGenerator::Elem::WritePlatformConfigTag(
336 std::string const& tag, std::string const& cond, std::string const& content)

Calls 1

strMethod · 0.80

Tested by

no test coverage detected