William Shallum

Adding debug symbols to a CMake build

Posted Mar 6 2010, 03:45 by William Shallum [updated Jun 17 2011, 07:51]

See http://techbase.kde.org/Development/CMake/Addons_for_KDE#Buildtypes or http://www.cmake.org/Wiki/CMake_Useful_Variables#Compilers_and_Tools

set CMAKE_BUILD_TYPE to Debug or RelWithDebInfo

can be done using cmake /path/to/source -DCMAKE_BUILD_TYPE=... or by using ccmake (the console-based configurator)