From d5e105ce620863f11d3ef6b53bf14beca97b4f80 Mon Sep 17 00:00:00 2001 From: bbbruni <77002160+bbbruni@users.noreply.github.com> Date: Thu, 21 Oct 2021 22:31:50 +0300 Subject: Disable compiler optimizations in debug mode --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 75ee4719..e46d00ac 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,6 +2,9 @@ cmake_minimum_required(VERSION 3.4) cmake_policy(SET CMP0065 NEW) +SET(CMAKE_C_FLAGS_DEBUG "-O0 -g") +SET(CMAKE_CXX_FLAGS_DEBUG "-O0 -g") + option(RPI4ARM64 "Set to ON if targeting an RaspberryPI4 device with multiarch arm64 and armhf" ${RPI4ARM64}) option(RK3326 "Set to ON if targeting an Rockchip RK3326 based device" ${RK3326}) option(RK3399 "Set to ON if targeting an Rockchip RK3399 based device" ${RK3399}) -- cgit 1.4.1