Index: CMakeLists.txt
--- CMakeLists.txt.orig	2020-09-20 19:15:03.000000000 +0200
+++ CMakeLists.txt	2020-09-22 00:13:17.470964000 +0200
@@ -70,7 +70,7 @@
     set(CBOR_RESTRICT_SPECIFIER "restrict")
 
     set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -O0 -Wall -g -ggdb -DDEBUG=true")
-    set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -O3 -Wall -DNDEBUG")
+    set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -O2 -DNDEBUG")
 
     if(SANITIZE)
         set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} \
@@ -144,16 +144,3 @@
     set_property(DIRECTORY src PROPERTY INTERPROCEDURAL_OPTIMIZATION TRUE)
 endif(use_lto)
 
-if (WITH_TESTS)
-    subdirs(test)
-    if(use_lto)
-        set_property(DIRECTORY test PROPERTY INTERPROCEDURAL_OPTIMIZATION TRUE)
-    endif(use_lto)
-endif (WITH_TESTS)
-
-if (WITH_EXAMPLES)
-    subdirs(examples)
-    if(use_lto)
-        set_property(DIRECTORY examples PROPERTY INTERPROCEDURAL_OPTIMIZATION TRUE)
-    endif(use_lto)
-endif (WITH_EXAMPLES)
