all repos — tint2 @ a8600a598bcdbb66274bb45219b5fb02ad16758b

fork of the tint2 desktop panel for my custom setup - only minimized windows across all desktops for the taskbar

Add some useful compiler flags for debug builds

git-svn-id: http://tint2.googlecode.com/svn/trunk@728 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
o9000 o9000
commit

a8600a598bcdbb66274bb45219b5fb02ad16758b

parent

da7efb27a9a7ceef7b6b3a09f2e104dad4d6bd26

1 files changed, 10 insertions(+), 2 deletions(-)

jump to
M CMakeLists.txtCMakeLists.txt

@@ -98,6 +98,14 @@ add_subdirectory( src/tint2conf )

add_dependencies( tint2conf version ) endif( ENABLE_TINT2CONF ) +if( CMAKE_BUILD_TYPE MATCHES Debug) + SET(DBG_C_FLAGS " -O0 -g3 -gdwarf-2 -fsanitize=address -fno-common -fno-omit-frame-pointer -rdynamic ") + SET(DBG_L_FLAGS " -O0 -g3 -gdwarf-2 -fsanitize=address -fno-common -fno-omit-frame-pointer -rdynamic ") +else() + SET(DBG_C_FLAGS "") + SET(DBG_L_FLAGS "") +endif() + set( MANDIR share/man CACHE PATH "Directory for man pages" ) set( DATADIR share CACHE PATH "Directory for shared data" ) set( SYSCONFDIR /etc CACHE PATH "Directory for configuration files" )

@@ -131,8 +139,8 @@

target_link_libraries( tint2 m ) add_dependencies( tint2 version ) -set_target_properties( tint2 PROPERTIES COMPILE_FLAGS "-Wall -pthread" ) -set_target_properties( tint2 PROPERTIES LINK_FLAGS "-pthread" ) +set_target_properties( tint2 PROPERTIES COMPILE_FLAGS "-Wall -pthread ${DBG_C_FLAGS}" ) +set_target_properties( tint2 PROPERTIES LINK_FLAGS "-pthread ${DBG_L_FLAGS}" ) install( TARGETS tint2 DESTINATION bin ) install( FILES sample/tint2rc DESTINATION ${SYSCONFDIR}/xdg/tint2 )