diff --git a/CMakeLists.txt b/CMakeLists.txt index 2168bfae..bc77e039 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)