From 1c9f38e98d36aa6ab108d0edc2b347788ef4b1f3 Mon Sep 17 00:00:00 2001 From: Matthew Barr Date: Fri, 13 Jan 2017 10:14:23 +1100 Subject: [PATCH] Silence ABI notes in release builds --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index e1f7cd72..dee408e3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -230,6 +230,12 @@ else() set(EXTRA_CXX_FLAGS "${EXTRA_CXX_FLAGS} -fno-omit-frame-pointer") endif() + if (RELEASE_BUILD) + # we don't need the noise of ABI warnings in a release build + set(EXTRA_C_FLAGS "${EXTRA_C_FLAGS} -Wno-abi") + set(EXTRA_CXX_FLAGS "${EXTRA_CXX_FLAGS} -Wno-abi") + endif () + endif() CHECK_INCLUDE_FILES(unistd.h HAVE_UNISTD_H)