summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2020-03-18 23:48:02 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2020-03-18 23:48:38 +0900
commit94d31d7159d7e535089061f70eee1a9b91b30344 (patch)
tree91dba09ed55583d0ac9be4a422d2fb18bdb217e9
parentf88e9bffd43e2313a6b63aa031515fbd18f16186 (diff)
downloadtdedocker-94d31d71.tar.gz
tdedocker-94d31d71.zip
Added cmake option to enable building with code tracing.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
-rw-r--r--CMakeLists.txt5
-rw-r--r--ConfigureChecks.cmake5
2 files changed, 9 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index b6a0408..2af26a0 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -41,6 +41,11 @@ include( TDESetupPaths )
tde_setup_paths( )
+##### optional stuff ############################
+
+option( WITH_TRACING "Enable code tracing" OFF )
+
+
##### user requested modules ####################
option( BUILD_ALL "Build all" OFF )
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
index caa3a7d..8d86a1c 100644
--- a/ConfigureChecks.cmake
+++ b/ConfigureChecks.cmake
@@ -23,11 +23,14 @@ tde_setup_largefiles( )
##### check for gcc visibility support
-
if( WITH_GCC_VISIBILITY )
tde_setup_gcc_visibility( )
endif( WITH_GCC_VISIBILITY )
+##### enable code tracing
+if( WITH_TRACING )
+ add_definitions( -DENABLE_TRACING )
+endif ( )
# check required packages
pkg_search_module( XMU xmu )