diff options
author | Brad King <brad.king@kitware.com> | 2018-06-19 17:39:26 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2018-06-20 13:44:18 (GMT) |
commit | 543b6826eefe2df5af824186c38cae5f1cdf4146 (patch) | |
tree | 604ae14afce0d92c1f273686984ba7d2e99291b3 /Source/cmVisualStudio10TargetGenerator.cxx | |
parent | ef5e2e8a62982ebccf4883fc7a01cdb66f8ca183 (diff) | |
download | CMake-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.cxx | 1 |
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; |