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)