From 41d48c939f0bed80ba4af4a92cf8483cd42ce6a8 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Wed, 17 Aug 2016 13:52:40 -0700 Subject: cmake: Make -Og the default debug flags when using gcc --- host/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) (limited to 'host') diff --git a/host/CMakeLists.txt b/host/CMakeLists.txt index c388a2ada..643857708 100644 --- a/host/CMakeLists.txt +++ b/host/CMakeLists.txt @@ -50,6 +50,7 @@ IF(${CMAKE_CXX_COMPILER_ID} STREQUAL "GNU") ELSE() MESSAGE(WARNING "\nCannot determine the version of the compiler selected to build UHD (GCC : ${CMAKE_CXX_COMPILER}). This build may or not work. We highly recommend using GCC version ${GCC_MIN_VERSION} or more recent.") ENDIF() + SET(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -Og") ELSEIF(${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang") EXECUTE_PROCESS(COMMAND ${CMAKE_CXX_COMPILER} -v -- cgit v1.2.3