From a57c3b691f299db45c3d105d3e488e4718e5bcb1 Mon Sep 17 00:00:00 2001 From: Pol Henarejos Date: Thu, 18 Aug 2022 11:55:16 +0200 Subject: [PATCH] Fix passing DEBUG_APDU flag. Signed-off-by: Pol Henarejos --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5613867..15243ac 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -36,6 +36,10 @@ if (NOT DEFINED USB_PID) set(USB_PID 0xFCFD) endif() add_definitions(-DUSB_PID=${USB_PID}) +if (NOT DEFINED DEBUG_APDU) + set(DEBUG_APDU 0) +endif() +add_definitions(-DDEBUG_APDU=${DEBUG_APDU}) find_package( PythonInterp 3.7 REQUIRED )