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})