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

Method WriteCudaOptions

Source/cmVisualStudio10TargetGenerator.cxx:4049–4063  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4047}
4048
4049void cmVisualStudio10TargetGenerator::WriteCudaOptions(
4050 Elem& e1, std::string const& configName)
4051{
4052 if (!this->MSTools || !this->GlobalGenerator->IsCudaEnabled() ||
4053 !this->GeneratorTarget->IsLanguageUsed("CUDA", configName)) {
4054 return;
4055 }
4056 Elem e2(e1, "CudaCompile");
4057
4058 OptionsHelper cudaOptions(*(this->CudaOptions[configName]), e2);
4059 cudaOptions.OutputAdditionalIncludeDirectories("CUDA");
4060 cudaOptions.OutputPreprocessorDefinitions("CUDA");
4061 cudaOptions.PrependInheritedString("AdditionalOptions");
4062 cudaOptions.OutputFlagMap();
4063}
4064
4065bool cmVisualStudio10TargetGenerator::ComputeCudaLinkOptions()
4066{

Callers 1

Calls 6

IsCudaEnabledMethod · 0.80
IsLanguageUsedMethod · 0.80
OutputFlagMapMethod · 0.45

Tested by

no test coverage detected