Skip to content

Commit

Permalink
Good error/warning/pedantic flags for gcc
Browse files Browse the repository at this point in the history
  • Loading branch information
sebjameswml committed Nov 22, 2023
1 parent 678dfce commit bc9af73
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ else()
message(STATUS "GCC version ${CMAKE_CXX_COMPILER_VERSION} OK!")
endif()
endif()
set(CMAKE_CXX_FLAGS "${MORPH_HOST_DEFINITION} -Wall -Wextra -g -Werror=deprecated-copy -Wunused-parameter -Wpedantic -Werror -Wfatal-errors -Wunused-result -Wunknown-pragmas -pedantic-errors -march=native -O3")
set(COMPREHENSIVE_WARNING_FLAGS "-Wall -Wextra -Wpedantic -pedantic-errors -Werror -Wfatal-errors")
set(CMAKE_CXX_FLAGS "${MORPH_HOST_DEFINITION} -g ${COMPREHENSIVE_WARNING_FLAGS} -march=native -O3")
endif()
else() # Windows
# Set flags for Windows. /EHsc required for use of exceptions
Expand Down

0 comments on commit bc9af73

Please sign in to comment.