summaryrefslogtreecommitdiffstats
path: root/Modules/Compiler
diff options
context:
space:
mode:
authorYantaoZhao <zhytsh15@126.com>2022-11-11 17:08:12 (GMT)
committerBrad King <brad.king@kitware.com>2022-11-11 17:19:41 (GMT)
commit207fd956d86c86aef0e16f42a71f5d77d6d3cc3c (patch)
tree856d256564af8084194b63a9e97cbf79432f8bc8 /Modules/Compiler
parent31893e8c8f580d6a94fc70b85e8cae47300cc6c0 (diff)
downloadCMake-207fd956d86c86aef0e16f42a71f5d77d6d3cc3c.zip
CMake-207fd956d86c86aef0e16f42a71f5d77d6d3cc3c.tar.gz
CMake-207fd956d86c86aef0e16f42a71f5d77d6d3cc3c.tar.bz2
CUDA: Use consistent -isystem flag style for NVIDIA nvcc
Replace `-isystem=` with `-isystem ` for consistency with other compilers. Fixes: #24154
Diffstat (limited to 'Modules/Compiler')
-rw-r--r--Modules/Compiler/NVIDIA-CUDA.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/Compiler/NVIDIA-CUDA.cmake b/Modules/Compiler/NVIDIA-CUDA.cmake
index c8dcd2a..34dd09a 100644
--- a/Modules/Compiler/NVIDIA-CUDA.cmake
+++ b/Modules/Compiler/NVIDIA-CUDA.cmake
@@ -70,7 +70,7 @@ if(NOT "x${CMAKE_CUDA_SIMULATE_ID}" STREQUAL "xMSVC")
endif()
set(CMAKE_SHARED_LIBRARY_CREATE_CUDA_FLAGS -shared)
-set(CMAKE_INCLUDE_SYSTEM_FLAG_CUDA -isystem=)
+set(CMAKE_INCLUDE_SYSTEM_FLAG_CUDA "-isystem ")
if (CMAKE_CUDA_SIMULATE_ID STREQUAL "GNU")
set(CMAKE_CUDA_LINKER_WRAPPER_FLAG "-Wl,")