Skip to content

Commit

Permalink
Remove non-functional list handling of compiler flags
Browse files Browse the repository at this point in the history
  • Loading branch information
sbvoxel committed Apr 30, 2024
1 parent 19396a4 commit dca46e4
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit dca46e4

Please sign in to comment.