cmake -g flag not generating 'DWARF with dSym file' debug information

I'm using cmake to generate a C++ Xcode project, but the debug information never gets generated. I have to manually select 'DWARF with dSym file' from the build setting every time I have generated the project with cmake.

Using 'SET (CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -g")' makes no difference.

I'm also pretty sure it used to work correctly with XCode 6 (now using Xcode 7)



You can use CMAKE_XCODE_ATTRIBUTE_* variable.

To set DWARF you can use:


To set DWARF with dSYM File:


Name of the Xcode attribute and values can be found in "Quick Help" section (see square brackered [DEBUG_INFORMATION_FORMAT], [dwarf] and [dwarf-with-dsym]):

Need Your Help

My form radio buttons don't work

html css input radio

Some simple HTMl, I've added spans for styling, should I be using labels instead? It's meant to only allow one selected at a time. What am I doing wrong? I am codeblind :P

JavaFX Canvas draw a lot of Objects (<250.000 => 500x500px)

canvas drawing javafx 2d

This is my first question to Stackoverflow, so be gentle with me :)