mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-02 20:00:38 -06:00
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
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user