From 2f72573a62adcb4ef8805163f56bd0a1880fa279 Mon Sep 17 00:00:00 2001 From: Brad King Date: Mon, 27 Nov 2017 09:07:42 -0500 Subject: CUDA: Treat /usr/include as an implicit include directory We already do this for C and C++. Fixes: #17512 --- Modules/Platform/UnixPaths.cmake | 3 +++ 1 file changed, 3 insertions(+) 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) -- cgit v0.12