Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 98f9eb0

Browse files
sbvoxelAlanscut
authored andcommitted
Remove non-functional list handling of compiler flags
1 parent 19396a4 commit 98f9eb0

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

‎CMakeLists.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,13 +102,10 @@ foreach(compiler_flag ${custom_compiler_flags})
102102

103103
CHECK_C_COMPILER_FLAG(${compiler_flag} "FLAG_SUPPORTED_${current_variable}")
104104
if (FLAG_SUPPORTED_${current_variable})
105-
list(APPEND supported_compiler_flags)
106105
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${compiler_flag}")
107106
endif()
108107
endforeach()
109108

110-
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${supported_compiler_flags}")
111-
112109
option(BUILD_SHARED_LIBS "Build shared libraries" ON)
113110
option(ENABLE_TARGET_EXPORT "Enable exporting of CMake targets. Disable when it causes problems!" ON)
114111

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /