From 98f9eb0412067a852ec107c68e49180fe4e472dc Mon Sep 17 00:00:00 2001 From: orri Date: Tue, 30 Apr 2024 08:18:17 +0000 Subject: [PATCH] Remove non-functional list handling of compiler flags --- CMakeLists.txt | 3 --- 1 file changed, 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0d807ea6..50fc3885 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)