diff --git a/ggml/src/CMakeLists.txt b/ggml/src/CMakeLists.txt index 726a13a33..2804bce85 100644 --- a/ggml/src/CMakeLists.txt +++ b/ggml/src/CMakeLists.txt @@ -538,7 +538,7 @@ if (GGML_SYCL) add_compile_definitions(GGML_SYCL_FORCE_MMQ) endif() - list(APPEND CMAKE_CXX_FLAGS -Wno-narrowing -fsycl) + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-narrowing -fsycl") if (GGML_SYCL_TARGET STREQUAL "NVIDIA") add_compile_definitions(GGML_SYCL_WARP_SIZE=32)