From 93961e29d1a228affff6bb3719686e821391c767 Mon Sep 17 00:00:00 2001 From: Kubat <mael.martin31@gmail.com> Date: Wed, 12 Oct 2022 20:11:57 +0200 Subject: [PATCH] BUILD: Add flags for release builds for the CI --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5b014d8e..f744475d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -41,6 +41,10 @@ endif() ### ### set(${CMAKE_C_COMPILER_ID}_C_FLAGS) +set(${CMAKE_BUILD_TYPE}_C_FLAGS) +set(RelWithDebInfo_C_FLAGS + -Wno-switch # For the CI +) set(COMMON_C_FLAGS -Wall -Wextra -Werror -Wshadow -- GitLab