summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-11-27 14:07:42 (GMT)
committerBrad King <brad.king@kitware.com>2017-11-27 15:24:13 (GMT)
commit2f72573a62adcb4ef8805163f56bd0a1880fa279 (patch)
tree2ae797a4c8f36c6a25be88df45a33652da56b150 /Modules
parent7746fdb2fe0177341aadeafec2ae73aa08ddfaf6 (diff)
downloadCMake-2f72573a62adcb4ef8805163f56bd0a1880fa279.zip
CMake-2f72573a62adcb4ef8805163f56bd0a1880fa279.tar.gz
CMake-2f72573a62adcb4ef8805163f56bd0a1880fa279.tar.bz2
CUDA: Treat /usr/include as an implicit include directory
We already do this for C and C++. Fixes: #17512
Diffstat (limited to 'Modules')
-rw-r--r--Modules/Platform/UnixPaths.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/Platform/UnixPaths.cmake b/Modules/Platform/UnixPaths.cmake
index 5687653..328d3c6 100644
--- a/Modules/Platform/UnixPaths.cmake
+++ b/Modules/Platform/UnixPaths.cmake
@@ -69,6 +69,9 @@ list(APPEND CMAKE_C_IMPLICIT_INCLUDE_DIRECTORIES
list(APPEND CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES
/usr/include
)
+list(APPEND CMAKE_CUDA_IMPLICIT_INCLUDE_DIRECTORIES
+ /usr/include
+ )
# Enable use of lib32 and lib64 search path variants by default.
set_property(GLOBAL PROPERTY FIND_LIBRARY_USE_LIB32_PATHS TRUE)