diff --git a/CMakeLists.txt b/CMakeLists.txt index 7e3ca4a..f09a00b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,6 +5,7 @@ set(CMAKE_CXX_STANDARD 17) if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang") add_compile_options(-Wall -Wextra -Wpedantic -Werror) + add_compile_options(-Wno-error=switch) add_link_options("-Wl,-z,relro,-z,now,-z,defs") endif()