File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,6 @@ add_compile_options(
4141 -Wcast-qual
4242 -Wcast-align
4343 -Wmissing-declarations
44- $<$<COMPILE_LANGUAGE:CXX>:-Wextra-semi>
4544 $<$<COMPILE_LANGUAGE:CXX>:-Wold-style-cast>
4645)
4746cable_add_cxx_compiler_flag_if_supported(-Wfinal-dtor-non-final-class)
@@ -52,6 +51,9 @@ cable_add_cxx_compiler_flag_if_supported(-Wduplicated-cond)
5251cable_add_cxx_compiler_flag_if_supported(-Wduplicate-enum)
5352cable_add_cxx_compiler_flag_if_supported(-Wlogical-op)
5453cable_add_cxx_compiler_flag_if_supported(-Wno-unknown-attributes)
54+ if (COMPILE_LANGUAGE MATCHES CXX)
55+ cable_add_cxx_compiler_flag_if_supported(-Wextra-semi)
56+ endif ()
5557
5658if (CMAKE_CXX_COMPILER_ID MATCHES Clang)
5759 option (WEVERYTHING "Enable almost all compiler warnings" OFF )
You can’t perform that action at this time.
0 commit comments