From df78e881500f121a3e13925709ee6366f15e400c Mon Sep 17 00:00:00 2001 From: itsmattkc Date: Fri, 10 Jul 2020 18:30:03 +1000 Subject: [PATCH] cmake: disable optimizations for debug builds Makes debugging certain bugs easier. --- app/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/CMakeLists.txt b/app/CMakeLists.txt index 4e693987d..7ea42d7f5 100644 --- a/app/CMakeLists.txt +++ b/app/CMakeLists.txt @@ -100,7 +100,7 @@ else() target_compile_options( ${OLIVE_TARGET} PRIVATE - -O2 + "$<$:-O2>" -Werror -Wuninitialized -pedantic-errors