Skip to content

Commit 3c2678c

Browse files
authored
[UR][CUDA] Properly quote strings in CMake (#19750)
CUDAToolkit_INCLUDE_DIRS is a ;-list
1 parent 945976c commit 3c2678c

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

unified-runtime/source/adapters/cuda/CMakeLists.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,14 @@ add_library(cudadrv SHARED IMPORTED GLOBAL)
6363
if (WIN32)
6464
set_target_properties(
6565
cudadrv PROPERTIES
66-
IMPORTED_IMPLIB ${CUDA_cuda_driver_LIBRARY}
67-
INTERFACE_INCLUDE_DIRECTORIES ${CUDAToolkit_INCLUDE_DIRS}
66+
IMPORTED_IMPLIB "${CUDA_cuda_driver_LIBRARY}"
67+
INTERFACE_INCLUDE_DIRECTORIES "${CUDAToolkit_INCLUDE_DIRS}"
6868
)
6969
else()
7070
set_target_properties(
7171
cudadrv PROPERTIES
72-
IMPORTED_LOCATION ${CUDA_cuda_driver_LIBRARY}
73-
INTERFACE_INCLUDE_DIRECTORIES ${CUDAToolkit_INCLUDE_DIRS}
72+
IMPORTED_LOCATION "${CUDA_cuda_driver_LIBRARY}"
73+
INTERFACE_INCLUDE_DIRECTORIES "${CUDAToolkit_INCLUDE_DIRS}"
7474
)
7575
endif()
7676

@@ -121,4 +121,4 @@ target_link_libraries(${TARGET_NAME} PRIVATE
121121

122122
target_include_directories(${TARGET_NAME} PRIVATE
123123
"${CMAKE_CURRENT_SOURCE_DIR}/../../"
124-
)
124+
)

unified-runtime/source/adapters/offload/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ if (NOT TARGET cudadrv)
2424
add_library(cudadrv SHARED IMPORTED GLOBAL)
2525
set_target_properties(
2626
cudadrv PROPERTIES
27-
IMPORTED_LOCATION ${CUDA_cuda_driver_LIBRARY}
28-
INTERFACE_INCLUDE_DIRECTORIES ${CUDAToolkit_INCLUDE_DIRS}
27+
IMPORTED_LOCATION "${CUDA_cuda_driver_LIBRARY}"
28+
INTERFACE_INCLUDE_DIRECTORIES "${CUDAToolkit_INCLUDE_DIRS}"
2929
)
3030
endif()
3131

0 commit comments

Comments
 (0)