From 949161d1f58bd6bfd9596f8a3c06000730808acf Mon Sep 17 00:00:00 2001 From: Ansgar Philippsen <ansgar.philippsen@gmail.com> Date: Wed, 8 May 2013 15:36:14 -0400 Subject: [PATCH] turned off attribute warning on gnucc to alleviate spam with new boost and gcc 4.7 --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 078e17192..c4f895529 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -253,8 +253,9 @@ if (CMAKE_COMPILER_IS_GNUCXX) # with multiple -fno-strict-aliasing flags, triggering a complete rebuild whenever # cmake is run set (CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -fno-strict-aliasing") + set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-attributes") if(HIDDEN_VISIBILITY) - set (CMAKE_CXX_FLAGS "-fvisibility=hidden") + set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fvisibility=hidden") set (_HIDDEN_VIS ON) else(HIDDEN_VISIBILITY) set (_HIDDEN_VIS OFF) -- GitLab