Skip to content
Snippets Groups Projects
Commit a5b3a061 authored by Andreas Schenk's avatar Andreas Schenk
Browse files

fix master CMakeLists.txt to only add -Wno-attributes for newer compilers (not...

fix master CMakeLists.txt to only add -Wno-attributes for newer compilers (not all older compilers have that option)
parent 3e8d7f67
Branches
Tags
No related merge requests found
......@@ -257,7 +257,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("${CMAKE_CXX_COMPILER_VERSION}" VERSION_GREATER "4.6")
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-attributes")
endif("${CMAKE_CXX_COMPILER_VERSION}" VERSION_GREATER "4.6")
if(HIDDEN_VISIBILITY)
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fvisibility=hidden")
set (_HIDDEN_VIS ON)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment