From 0b356ce9dfbf584f54353eee4db2987eeb6066df Mon Sep 17 00:00:00 2001 From: Christian Rauch Date: Fri, 19 Jan 2024 16:50:08 +0100 Subject: [PATCH] Revert "[DBG] remove warnings" This reverts commit 3af28bbc04e1d14187698ccb6a2ec12a3a72c130. --- CMakeLists.txt | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index bc77e039..2168bfae 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -39,14 +39,14 @@ if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES) set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS "Debug" "Release" "MinSizeRel" "RelWithDebInfo") endif() -# if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID MATCHES "Clang") -# add_compile_options(-Wall -Wextra -Werror) -# # add_compile_options(-Wpedantic) -# add_compile_options(-Wno-shift-negative-value) -# if(NOT CMAKE_C_COMPILER_ID MATCHES "AppleClang") -# add_link_options("-Wl,-z,relro,-z,now,-z,defs") -# endif() -# endif() +if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID MATCHES "Clang") + add_compile_options(-Wall -Wextra -Werror) + # add_compile_options(-Wpedantic) + add_compile_options(-Wno-shift-negative-value) + if(NOT CMAKE_C_COMPILER_ID MATCHES "AppleClang") + add_link_options("-Wl,-z,relro,-z,now,-z,defs") + endif() +endif() aux_source_directory(common COMMON_SRC) set(APRILTAG_SRCS apriltag.c apriltag_pose.c apriltag_quad_thresh.c)