| 315 | cmVisualStudio10TargetGenerator::~cmVisualStudio10TargetGenerator() = default; |
| 316 | |
| 317 | std::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 | |
| 335 | void cmVisualStudio10TargetGenerator::Elem::WritePlatformConfigTag( |
| 336 | std::string const& tag, std::string const& cond, std::string const& content) |
no test coverage detected