Skip to content
Snippets Groups Projects
Commit e38b8505 authored by Bruce Perens's avatar Bruce Perens Committed by Andy Green
Browse files

remove O3 if cmake debug build

parent 940a7550
No related branches found
No related tags found
No related merge requests found
......@@ -426,9 +426,9 @@ if (CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX)
set(VISIBILITY_FLAG -fvisibility=hidden)
endif()
if (UNIX)
set(CMAKE_C_FLAGS "-Wall -Werror -O3 ${VISIBILITY_FLAG} ${CMAKE_C_FLAGS}" )
set(CMAKE_C_FLAGS "-Wall -Werror ${VISIBILITY_FLAG} ${CMAKE_C_FLAGS}" )
else(UNIX)
set(CMAKE_C_FLAGS "-Wall -O3 ${VISIBILITY_FLAG} ${CMAKE_C_FLAGS}" )
set(CMAKE_C_FLAGS "-Wall ${VISIBILITY_FLAG} ${CMAKE_C_FLAGS}" )
endif(UNIX)
endif ()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment