]> git.feebdaed.xyz Git - 0xmirror/cJSON.git/commitdiff
Remove non-functional list handling of compiler flags
authororri <orri@systemb.is>
Tue, 30 Apr 2024 08:18:17 +0000 (08:18 +0000)
committerAlan Wang <wp_scut@163.com>
Mon, 6 May 2024 02:48:17 +0000 (10:48 +0800)
CMakeLists.txt

index 0d807ea62c6ee72a6ce753061342786293c0f2c5..50fc38856014fee7fc80dc495b1600411f95bc43 100644 (file)
@@ -102,13 +102,10 @@ foreach(compiler_flag ${custom_compiler_flags})
 
     CHECK_C_COMPILER_FLAG(${compiler_flag} "FLAG_SUPPORTED_${current_variable}")
     if (FLAG_SUPPORTED_${current_variable})
-        list(APPEND supported_compiler_flags)
         set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${compiler_flag}")
     endif()
 endforeach()
 
-set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${supported_compiler_flags}")
-
 option(BUILD_SHARED_LIBS "Build shared libraries" ON)
 option(ENABLE_TARGET_EXPORT "Enable exporting of CMake targets. Disable when it causes problems!" ON)