From fd3adeeb0a757c52c62327ace6016fb792b7a491 Mon Sep 17 00:00:00 2001
From: luofeng <luofeng13@huawei.com>
Date: Sat, 23 Sep 2023 17:55:57 +0800
Subject: [PATCH] support clang build

---
 cmake/JSSConfig.cmake | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cmake/JSSConfig.cmake b/cmake/JSSConfig.cmake
index 07b5cd6..a11289e 100644
--- a/cmake/JSSConfig.cmake
+++ b/cmake/JSSConfig.cmake
@@ -176,7 +176,7 @@ macro(jss_config_cflags)
     # Handle passed-in C flags as well; assume they are valid.
     separate_arguments(PASSED_C_FLAGS UNIX_COMMAND "${CMAKE_C_FLAGS}")
     foreach(PASSED_C_FLAG ${PASSED_C_FLAGS})
-        list(INSERT JSS_C_FLAGS 0 "${PASSED_C_FLAG}")
+        list(APPEND JSS_C_FLAGS "${PASSED_C_FLAG}")
     endforeach()
 
     message(STATUS "JSS C FLAGS: ${JSS_C_FLAGS}")
-- 
2.19.1

