Просмотр исходного кода

VS: Avoid duplication of CUDA include directories

We already place all include directories for CUDA inside `CudaCompile`
so we do not need to use any from `ClCompile`.  Tell `CudaCompile`
not to use the host compiler's include directory settings.

Fixes: #18101
Brad King 7 лет назад
Родитель
Сommit
543b6826ee
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      Source/cmVisualStudio10TargetGenerator.cxx

+ 1 - 0
Source/cmVisualStudio10TargetGenerator.cxx

@@ -2809,6 +2809,7 @@ bool cmVisualStudio10TargetGenerator::ComputeCudaOptions(
 
   // Get includes for this target
   cudaOptions.AddIncludes(this->GetIncludes(configName, "CUDA"));
+  cudaOptions.AddFlag("UseHostInclude", "false");
 
   this->CudaOptions[configName] = std::move(pOptions);
   return true;