diff options
author | Robert Maynard <rmaynard@nvidia.com> | 2022-10-14 18:06:38 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2022-10-17 14:17:33 (GMT) |
commit | d0e52219eb1c8a614bbb416f73c932b7858292f8 (patch) | |
tree | fdb0b7915dc8164d5e207092bc43268fbc1e8839 /Source/cmGlobalGenerator.cxx | |
parent | 20bfbf783894681f8aeb9bf6b0cff9f4c9443832 (diff) | |
download | CMake-d0e52219eb1c8a614bbb416f73c932b7858292f8.zip CMake-d0e52219eb1c8a614bbb416f73c932b7858292f8.tar.gz CMake-d0e52219eb1c8a614bbb416f73c932b7858292f8.tar.bz2 |
CUDA: Revert "Always mark cuda toolkit as system include"
We need to revert this change as it can disable error messages
when compiling invalid CUDA code.
This reverts commit ea659b155d (CUDA: Always mark cuda toolkit as system
include, 2022-06-27, v3.25.0-rc1~269^2).
Diffstat (limited to 'Source/cmGlobalGenerator.cxx')
-rw-r--r-- | Source/cmGlobalGenerator.cxx | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/Source/cmGlobalGenerator.cxx b/Source/cmGlobalGenerator.cxx index 6962b52..c2bf888 100644 --- a/Source/cmGlobalGenerator.cxx +++ b/Source/cmGlobalGenerator.cxx @@ -1855,15 +1855,6 @@ void cmGlobalGenerator::FinalizeTargetConfiguration() cmExpandedList(standardIncludesStr); standardIncludesSet.insert(standardIncludesVec.begin(), standardIncludesVec.end()); - if (li == "CUDA") { - std::string const& cudaSystemIncludeVar = - mf->GetSafeDefinition("CMAKE_CUDA_TOOLKIT_INCLUDE_DIRECTORIES"); - std::vector<std::string> cudaToolkitIncludeVec = - cmExpandedList(cudaSystemIncludeVar); - standardIncludesSet.insert(cudaToolkitIncludeVec.begin(), - cudaToolkitIncludeVec.end()); - mf->AddIncludeDirectories(cudaToolkitIncludeVec); - } } mf->AddSystemIncludeDirectories(standardIncludesSet); } |