CUDA: Use consistent -isystem flag style for NVIDIA nvcc

Replace `-isystem=` with `-isystem ` for consistency with other compilers.

Fixes: #24154
This commit is contained in:
YantaoZhao
2022-11-11 12:08:12 -05:00
committed by Brad King
parent 31893e8c8f
commit 207fd956d8

View File

@@ -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,")