From 8aa5bb38afb538aac1fceeb18b040529987fca69 Mon Sep 17 00:00:00 2001 From: Michael Podvitskiy Date: Fri, 13 Sep 2024 12:32:23 +0200 Subject: [PATCH] use CMAKE_CXX_FLAGS as a string variable --- ggml/src/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)