From 2ff98cf43c801bc24d37fb9addae3dd77dac19ff Mon Sep 17 00:00:00 2001 From: Steven Koo Date: Thu, 16 Dec 2021 17:01:46 -0600 Subject: cmake: Set debug to -Og for Clang builds This fails to link otherwise on macOS Signed-off-by: Steven Koo --- host/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) (limited to 'host') diff --git a/host/CMakeLists.txt b/host/CMakeLists.txt index fcf9feed3..0a3bf3d83 100644 --- a/host/CMakeLists.txt +++ b/host/CMakeLists.txt @@ -79,6 +79,7 @@ elseif(${CMAKE_CXX_COMPILER_ID} MATCHES "Clang") else() message(WARNING "\nCannot determine the version of the compiler selected to build UHD (${APPLE_STR}Clang : ${CMAKE_CXX_COMPILER}). This build may or not work. We highly recommend using Apple Clang version ${APPLECLANG_MIN_VERSION} or more recent, or Clang version ${CLANG_MIN_VERSION} or more recent.") endif() + set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -Og") elseif(MSVC) if(${MSVC_VERSION} VERSION_LESS ${MSVC_MIN_VERSION}) message(FATAL_ERROR "\nMSVC version is less than the required minimum. Required: ${MSVC_MIN_VERSION_READABLE}") -- cgit v1.2.3