From 1871f6455948368eab7009b620efb7d2f207d872 Mon Sep 17 00:00:00 2001 From: Rich Nistuk Date: Thu, 6 Sep 2018 19:09:34 -0700 Subject: [PATCH] Made -Wno-extended-offsetof a warning for apple only --- CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index bda1fc34..f3ec8c62 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -30,7 +30,11 @@ if (APPLE) add_definitions(-DBOOST_ERROR_CODE_HEADER_ONLY) endif(APPLE) -set(warnings "-Wno-deprecated-declarations -Wall -Wextra -Werror -Wpedantic -Wno-extended-offsetof") +set(warnings "-Wno-deprecated-declarations -Wall -Wextra -Werror -Wpedantic") +if (APPLE) + set(warnings "${warnings} -Wno-extended-offsetof") +endif(APPLE) + set(CMAKE_CXX_FLAGS ${warnings}) set(CMAKE_C_FLAGS ${warnings})