| 4162 | } |
| 4163 | |
| 4164 | void cmVisualStudio10TargetGenerator::WriteCudaLinkOptions( |
| 4165 | Elem& e1, std::string const& configName) |
| 4166 | { |
| 4167 | // We need to write link options for OBJECT libraries so that |
| 4168 | // we override the default device link behavior ( enabled ) when |
| 4169 | // building object libraries with ptx/optix-ir/etc |
| 4170 | if (this->GeneratorTarget->GetType() > cmStateEnums::OBJECT_LIBRARY) { |
| 4171 | return; |
| 4172 | } |
| 4173 | |
| 4174 | if (!this->MSTools || !this->GlobalGenerator->IsCudaEnabled()) { |
| 4175 | return; |
| 4176 | } |
| 4177 | |
| 4178 | Elem e2(e1, "CudaLink"); |
| 4179 | OptionsHelper cudaLinkOptions(*(this->CudaLinkOptions[configName]), e2); |
| 4180 | cudaLinkOptions.OutputFlagMap(); |
| 4181 | } |
| 4182 | |
| 4183 | bool cmVisualStudio10TargetGenerator::ComputeMarmasmOptions() |
| 4184 | { |
no test coverage detected