Skip to content

Commit

Permalink
delete ExtractValidFlags
Browse files Browse the repository at this point in the history
  • Loading branch information
vszakats committed Oct 9, 2023
1 parent 7c62ae2 commit 8f44279
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ foreach(_build_type "Release" "MinSizeRel" "RelWithDebInfo")
endforeach()

include(CMakePushCheckState)
include(ExtractValidFlags)

if(NOT CMAKE_C_COMPILER_ID MATCHES "MSVC")
if(ENABLE_ASAN)
Expand Down Expand Up @@ -286,13 +285,13 @@ if(CMAKE_C_COMPILER_ID MATCHES "MSVC")
set(WARNCXXFLAGS /WX)
endif()
else()
if(ENABLE_WERROR)
extract_valid_c_flags(WARNCFLAGS -Werror)
extract_valid_c_flags(WARNCXXFLAGS -Werror)
endif()

include(PickyWarningsC)
include(PickyWarningsCXX)

if(ENABLE_WERROR)
set(WARNCFLAGS "-Werror ${WARNCFLAGS}")
set(WARNCXXFLAGS "-Werror ${WARNCXXFLAGS}")
endif()
endif()

if(ENABLE_DEBUG)
Expand Down

0 comments on commit 8f44279

Please sign in to comment.