Commit eaaa36d9 authored by adelmann's avatar adelmann 🎗
Browse files

change compile flags RELEASE is -O3 RELEASE and DEBUG is -O2 -g

parent 17df46b5
......@@ -18,8 +18,8 @@ ENDIF (NOT CMAKE_CONFIGURATION_TYPES AND NOT CMAKE_BUILD_TYPE)
MESSAGE (STATUS "Build type is: " ${CMAKE_BUILD_TYPE})
# Select flags.
SET (CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O2 -g")
SET (CMAKE_CXX_FLAGS_RELEASE "-O2")
SET (CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O3 -g ")
SET (CMAKE_CXX_FLAGS_RELEASE "-O3")
SET (CMAKE_CXX_FLAGS_DEBUG "-O0 -g")
......@@ -224,7 +224,7 @@ ELSEIF ("${MPI_UNDERLYING_COMPILER_NAME}" STREQUAL "g++")
ELSEIF (${GCC_VERSION} VERSION_GREATER "4.7")
SET (CMAKE_CXX_FLAGS
"-Wall -Werror -Wno-reorder -std=c++11 $ENV{CMAKE_CXX_FLAGS} ${CMAKE_CXX_FLAGS} ${OTHER_CMAKE_CXX_FLAGS}")
"-Wall -Werror -Wno-reorder -Werror=unused-variable -std=c++11 $ENV{CMAKE_CXX_FLAGS} ${CMAKE_CXX_FLAGS} ${OTHER_CMAKE_CXX_FLAGS}")
ENDIF ()
ELSE ()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment