From df5412fb68a82b35196e6b3b7309d7a3a3437977 Mon Sep 17 00:00:00 2001 From: vl Date: Fri, 18 Feb 2011 09:10:37 +0100 Subject: [PATCH] Added: dwarf2 debug symbol format for mac --- code/CMakeModules/nel.cmake | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/code/CMakeModules/nel.cmake b/code/CMakeModules/nel.cmake index 9a319c058..1d2728fb9 100644 --- a/code/CMakeModules/nel.cmake +++ b/code/CMakeModules/nel.cmake @@ -309,6 +309,11 @@ MACRO(NL_SETUP_BUILD) IF(WITH_COVERAGE) SET(PLATFORM_CFLAGS "-fprofile-arcs -ftest-coverage ${PLATFORM_CFLAGS}") ENDIF(WITH_COVERAGE) + + IF(APPLE) + SET(PLATFORM_CFLAGS "-gdwarf-2 ${PLATFORM_CFLAGS}") + ENDIF(APPLE) + SET(PLATFORM_CXXFLAGS ${PLATFORM_CFLAGS}) IF(NOT APPLE) @@ -317,6 +322,7 @@ MACRO(NL_SETUP_BUILD) SET(NL_DEBUG_CFLAGS "-DNL_DEBUG -D_DEBUG") SET(NL_RELEASE_CFLAGS "-DNL_RELEASE -DNDEBUG -O6") + ENDIF(WIN32) # Determine host CPU