@ -54,6 +54,15 @@ option( WITH_PYTHON "Enable Python modules API (requires Boost.Python)." ON )
option ( WITH_PYTHONQT "Enable next generation Python modules API (experimental, requires PythonQt)." OFF )
option ( WITH_KF5Crash "Enable crash reporting with KCrash." ON )
# P o s s i b l e d e b u g g i n g f l a g s a r e :
# - D E B U G _ T I M E Z O N E S d r a w s l a t i t u d e a n d l o n g i t u d e l i n e s o n t h e t i m e z o n e
# w i d g e t a n d e n a b l e s c h a t t y d e b u g l o g g i n g , f o r d e a l i n g w i t h t h e t i m e z o n e
# l o c a t i o n d a t a b a s e .
# - D E B U G _ F I L E S Y S T E M S d o e s e x t r a l o g g i n g a n d c h e c k i n g w h e n l o o k i n g a t
# p a r t i t i o n c o n f i g u r a t i o n . L i s t s k n o w n K P M C o r e F S t y p e s .
# - DEBUG_PARTITION_UNSAFE ( see partition/CMakeLists.txt )
# - DEBUG_PARTITION_LAME ( see partition/CMakeLists.txt )
# # # U S E _ *
#
@ -156,26 +165,6 @@ set( CMAKE_CXX_STANDARD_REQUIRED ON )
set ( CMAKE_C_STANDARD 99 )
set ( CMAKE_C_STANDARD_REQUIRED ON )
# D e b u g g i n g f l a g s
#
# P o s s i b l e d e b u g g i n g f l a g s a r e :
# - D E B U G _ T I M E Z O N E S d r a w s l a t i t u d e a n d l o n g i t u d e l i n e s o n t h e t i m e z o n e
# w i d g e t a n d e n a b l e s c h a t t y d e b u g l o g g i n g , f o r d e a l i n g w i t h t h e t i m e z o n e
# l o c a t i o n d a t a b a s e .
# - D E B U G _ F I L E S Y S T E M S d o e s e x t r a l o g g i n g a n d c h e c k i n g w h e n l o o k i n g a t
# p a r t i t i o n c o n f i g u r a t i o n . L i s t s k n o w n K P M C o r e F S t y p e s .
#
# T h e f l a g s l i s t e d h e r e a r e e n a b l e d i n D e b u g b u i l d s . B y d e f a u l t , n o n e
# a r e * * a c t u a l l y * * l i s t e d , b e c a u s e t h e y ' r e f o r s u c h s p e c i f i c s c e n a r i o s .
set ( _enable_debug_flags
# D E B U G _ T I M E Z O N E S
# D E B U G _ F I L E S Y S T E M S
)
# A d d t h o s e f l a g s t o t h e C X X f l a g s i n a s u i t a b l e f o r m a t .
foreach ( _edf ${ _enable_debug_flags } )
string ( APPEND CMAKE_CXX_FLAGS_DEBUG " -D${_edf}" )
endforeach ( )
set ( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall" )
if ( CMAKE_CXX_COMPILER_ID MATCHES "Clang" )
message ( STATUS "Found Clang ${CMAKE_CXX_COMPILER_VERSION}, setting up Clang-specific compiler flags." )