From 581194240a7e05bb2bc4d613ab59e450c3a2291b Mon Sep 17 00:00:00 2001 From: mhubii Date: Tue, 22 Oct 2024 19:35:25 +0100 Subject: [PATCH] fix compilation warnings --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 77b554f..d9216cb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -11,6 +11,12 @@ if(NOT CMAKE_BUILD_TYPE) set(CMAKE_BUILD_TYPE Release CACHE STRING "Build type." FORCE) endif() +if(CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang") + # Disable specific warnings (we cannot change these, KUKA has to fix them in their SDK) + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-format-security -Wno-parentheses") + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-format-security -Wno-parentheses") +endif() + ###################### # variable definitions ######################