CMAKE_BUILD_TYPE=RelWithDebInfo description in TechBase

Thiago Macieira thiago at kde.org
Wed Mar 25 08:39:27 CET 2009


Raphael Kubo da Costa wrote:
>Hello,
>
>I was reading the description of the different values for
>CMAKE_BUILD_TYPE in
>http://techbase.kde.org/Development/CMake/Build_Types and saw that the
>"Debugging Features in Detail" table shows RelWithDebInfo as including
>support kDebug and qDebug.
>
>However, looking at
>http://websvn.kde.org/*checkout*/trunk/KDE/kdelibs/cmake/modules/FindKDE
>4Internal.cmake the CXXFLAGS for this build type is defined as follows:
>
>   set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O2 -g -DNDEBUG -DQT_NO_DEBUG")
>
>Which effectively turns off kDebug (lines 44-47 in
>kdelibs/kdecore/io/kdebug.cpp) and possibly qDebug as well (I didn't
>look at qt-copy's source to check for QT_NO_DEBUG). My trunk was
>compiled with RelWithDebInfo and almost no kDebug messages were shown
>(though some were, for some reason, specially when no area was
>explicitly passed to it).
>
>So, is the article wrong?

Yes, it is.

RelWithDebInfo is "release with debugging symbols"

-- 
  Thiago Macieira  -  thiago (AT) macieira.info - thiago (AT) kde.org
    PGP/GPG: 0x6EF45358; fingerprint:
    E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/kde-buildsystem/attachments/20090325/7d33fa68/attachment-0001.sig 


More information about the Kde-buildsystem mailing list