summaryrefslogtreecommitdiffstats
path: root/Source/cmVisualStudio10TargetGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-06-19 17:39:26 (GMT)
committerBrad King <brad.king@kitware.com>2018-06-20 13:44:18 (GMT)
commit543b6826eefe2df5af824186c38cae5f1cdf4146 (patch)
tree604ae14afce0d92c1f273686984ba7d2e99291b3 /Source/cmVisualStudio10TargetGenerator.cxx
parentef5e2e8a62982ebccf4883fc7a01cdb66f8ca183 (diff)
downloadCMake-543b6826eefe2df5af824186c38cae5f1cdf4146.zip
CMake-543b6826eefe2df5af824186c38cae5f1cdf4146.tar.gz
CMake-543b6826eefe2df5af824186c38cae5f1cdf4146.tar.bz2
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
Diffstat (limited to 'Source/cmVisualStudio10TargetGenerator.cxx')
-rw-r--r--Source/cmVisualStudio10TargetGenerator.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmVisualStudio10TargetGenerator.cxx b/Source/cmVisualStudio10TargetGenerator.cxx
index 1768c57..b9ec301 100644
--- a/Source/cmVisualStudio10TargetGenerator.cxx
+++ b/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;