Merge pull request #8 from coldtobi/fix_older_gcc

Fix add_compile_options spelling.
This commit is contained in:
sstefani 2022-06-21 10:25:25 +02:00 committed by GitHub
commit 811a3b75e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -53,7 +53,7 @@ set(CMAKE_EXE_LINKER_FLAGS_LTO "${CMAKE_LINKER_FLAGS_RELEASE} -flto")
add_compile_options(-Wall -Wextra) add_compile_options(-Wall -Wextra)
if(CMAKE_C_COMPILER_ID STREQUAL "GNU" AND CMAKE_C_COMPILER_VERSION VERSION_GREATER_EQUAL 7) if(CMAKE_C_COMPILER_ID STREQUAL "GNU" AND CMAKE_C_COMPILER_VERSION VERSION_GREATER_EQUAL 7)
add_compile_option(-Wno-implicit-fallthrough) add_compile_options(-Wno-implicit-fallthrough)
endif() endif()
if (NOT DISABLE_CLIENT) if (NOT DISABLE_CLIENT)