From 00fc21e8a7912632591596f18f8631ab02c64895 Mon Sep 17 00:00:00 2001 From: Brent Cook Date: Fri, 7 Jul 2023 18:28:06 +0300 Subject: 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. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index adfb540..c5b880b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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") -- cgit v1.2.3-55-g6feb