aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrent Cook <busterb@gmail.com>2023-07-07 18:28:06 +0300
committerBrent Cook <busterb@gmail.com>2023-07-07 18:38:57 +0300
commit00fc21e8a7912632591596f18f8631ab02c64895 (patch)
treeed6f12ec8e632553aa81aea84ea7ad6891e8401b
parent56b283e27f84a2f199333827fd809ed73d292a60 (diff)
downloadportable-00fc21e8a7912632591596f18f8631ab02c64895.tar.gz
portable-00fc21e8a7912632591596f18f8631ab02c64895.tar.bz2
portable-00fc21e8a7912632591596f18f8631ab02c64895.zip
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.
-rw-r--r--CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
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"))
79 add_definitions(-D__USE_MINGW_ANSI_STDIO) 79 add_definitions(-D__USE_MINGW_ANSI_STDIO)
80endif() 80endif()
81 81
82set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O2 -Wall") 82set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall")
83 83
84if(CMAKE_SYSTEM_NAME MATCHES "HP-UX") 84if(CMAKE_SYSTEM_NAME MATCHES "HP-UX")
85 if(CMAKE_C_COMPILER MATCHES "gcc") 85 if(CMAKE_C_COMPILER MATCHES "gcc")