Skip to content
Snippets Groups Projects
Commit 98a2360c authored by Hahn, Steven's avatar Hahn, Steven
Browse files

Adding compiler flags introduced in GCC 5.1

parent 0abac5c8
No related merge requests found
...@@ -40,6 +40,13 @@ elseif ( "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang" ) ...@@ -40,6 +40,13 @@ elseif ( "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang" )
set(GNUFLAGS "${GNUFLAGS} -Wno-sign-conversion") set(GNUFLAGS "${GNUFLAGS} -Wno-sign-conversion")
endif() endif()
# Check if we have a new enough version for these flags
if ( CMAKE_COMPILER_IS_GNUCXX )
if (NOT (GCC_COMPILER_VERSION VERSION_LESS "5.1"))
set(GNUFLAGS "${GNUFLAGS} -Wsuggest-override -Wsuggest-final-types -Wsuggest-final-methods")
endif()
endif()
# Add some options for debug build to help the Zoom profiler # Add some options for debug build to help the Zoom profiler
set( CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -fno-omit-frame-pointer" ) set( CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -fno-omit-frame-pointer" )
set( CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -fno-omit-frame-pointer" ) set( CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -fno-omit-frame-pointer" )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment