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

Method WriteCudaLinkOptions

Source/cmVisualStudio10TargetGenerator.cxx:4164–4181  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4162}
4163
4164void 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
4183bool cmVisualStudio10TargetGenerator::ComputeMarmasmOptions()
4184{

Callers 1

Calls 3

IsCudaEnabledMethod · 0.80
GetTypeMethod · 0.45
OutputFlagMapMethod · 0.45

Tested by

no test coverage detected