Remove hard-coded optimization level in CMake builds

Fixes #683. These are not compiler-agnostic, and can interfere with user
overrides as well. The defaults in Cmake are reasonable.
This commit is contained in:
Brent Cook 2023-07-07 18:28:06 +03:00
parent 56b283e27f
commit 00fc21e8a7

View File

@ -79,7 +79,7 @@ if(WIN32 OR (CMAKE_SYSTEM_NAME MATCHES "MINGW"))
add_definitions(-D__USE_MINGW_ANSI_STDIO)
endif()
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O2 -Wall")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall")
if(CMAKE_SYSTEM_NAME MATCHES "HP-UX")
if(CMAKE_C_COMPILER MATCHES "gcc")