Skip to content

Commit fb8f142

Browse files
authored
one more CMAKE_CXX_FLAGS fix (#9471)
1 parent 228df2b commit fb8f142

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ggml/src/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,7 @@ if (GGML_SYCL)
574574
if (GGML_SYCL_TARGET STREQUAL "INTEL")
575575
list(APPEND GGML_EXTRA_LIBS OpenCL mkl_core pthread m dl mkl_sycl_blas mkl_intel_ilp64 mkl_tbb_thread)
576576
elseif (GGML_SYCL_TARGET STREQUAL "NVIDIA")
577-
list(APPEND CMAKE_CXX_FLAGS -fsycl-targets=nvptx64-nvidia-cuda)
577+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsycl-targets=nvptx64-nvidia-cuda")
578578
list(APPEND GGML_EXTRA_LIBS pthread m dl onemkl)
579579
endif()
580580
endif()

0 commit comments

Comments
 (0)