summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2017-10-11 15:33:16 +0200
committerSzczepan Zalega <szczepan@nitrokey.com>2017-10-11 18:00:58 +0200
commit5cf9322ea5215b238364e5caac9e0e176522c4a8 (patch)
tree7e47073d2d775da22050e3ac7d61fd82e282403c
parent0316694202de043dd4eeaccd61f4b7b19959e024 (diff)
downloadlibnitrokey-5cf9322ea5215b238364e5caac9e0e176522c4a8.tar.gz
libnitrokey-5cf9322ea5215b238364e5caac9e0e176522c4a8.tar.bz2
Switch logging volatile data
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
-rw-r--r--CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index a22380a..8259f67 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -123,6 +123,11 @@ IF (NO_LOG)
SET_TARGET_PROPERTIES(${LIBNAME} PROPERTIES COMPILE_DEFINITIONS "NO_LOG")
ENDIF()
+OPTION(LOG_VOLATILE_DATA "Log volatile data (debug)" OFF)
+IF (LOG_VOLATILE_DATA)
+ SET_TARGET_PROPERTIES(${LIBNAME} PROPERTIES COMPILE_DEFINITIONS "LOG_VOLATILE_DATA")
+ENDIF()
+
file(GLOB LIB_INCLUDES "include/*.h")
install (FILES ${LIB_INCLUDES} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/libnitrokey)