From 2caefce3cbee5681dc37c5ec0a46618c231b0b5b Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Sun, 17 Mar 2019 09:47:50 -0400 Subject: [PATCH] [locale] Add a CMake option for debugging --- src/modules/locale/CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/modules/locale/CMakeLists.txt b/src/modules/locale/CMakeLists.txt index b70c6d1ab..8faf8468c 100644 --- a/src/modules/locale/CMakeLists.txt +++ b/src/modules/locale/CMakeLists.txt @@ -1,8 +1,10 @@ # When debugging the timezone widget, add this debugging definition # to have a debugging-friendly timezone widget, debug logging, # and no intrusive timezone-setting while clicking around. -# -# add_definitions( -DDEBUG_TIMEZONES ) +option( DEBUG_TIMEZONES "Debug-friendly timezone widget." OFF ) +if( DEBUG_TIMEZONES ) + add_definitions( -DDEBUG_TIMEZONES ) +endif() include_directories( ${PROJECT_BINARY_DIR}/src/libcalamaresui )