diff options
author | Martin Braun <martin.braun@ettus.com> | 2016-08-17 13:52:40 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2016-08-18 09:36:36 -0700 |
commit | 41d48c939f0bed80ba4af4a92cf8483cd42ce6a8 (patch) | |
tree | 9b6b18b584c0f55b90e39177f021d635dcb4c995 /host | |
parent | e1fd5b6b1f044e7f42e6c6d889e3072c2cec0129 (diff) | |
download | uhd-41d48c939f0bed80ba4af4a92cf8483cd42ce6a8.tar.gz uhd-41d48c939f0bed80ba4af4a92cf8483cd42ce6a8.tar.bz2 uhd-41d48c939f0bed80ba4af4a92cf8483cd42ce6a8.zip |
cmake: Make -Og the default debug flags when using gcc
Diffstat (limited to 'host')
-rw-r--r-- | host/CMakeLists.txt | 1 |
1 files changed, 1 insertions, 0 deletions
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 |