Skip to content

Commit 7ab4373

Browse files
committed
fix ENABLE_PQC_DBG_LOG flag
1 parent a739940 commit 7ab4373

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

CMakeLists.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,7 @@ option(ENABLE_CRYPTO_REFRESH "Enable crypto-refresh support (v6)")
8383
option(ENABLE_PQC "Enable PQC support")
8484

8585
# Note: The following flag is only temporary and will be removed once POC is in a stable state
86-
if (DEFINED ENABLE_PQC_DBG_LOG)
87-
add_definitions(-DENABLE_PQC_DBG_LOG)
88-
endif()
86+
option(ENABLE_PQC_DBG_LOG "Enable debug logging for PQC")
8987

9088
set(ENABLE_DOC Auto CACHE STRING "Enable building documentation.")
9189
set_property(CACHE ENABLE_DOC PROPERTY STRINGS ${TRISTATE_VALUES})

src/lib/config.h.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@
6464
#cmakedefine ENABLE_IDEA
6565
#cmakedefine ENABLE_CRYPTO_REFRESH
6666
#cmakedefine ENABLE_PQC
67+
#cmakedefine ENABLE_PQC_DBG_LOG
6768
#cmakedefine ENABLE_BLOWFISH
6869
#cmakedefine ENABLE_CAST5
6970
#cmakedefine ENABLE_RIPEMD160

src/lib/logging.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
#ifndef RNP_LOGGING_H_
2828
#define RNP_LOGGING_H_
2929

30+
#include "config.h"
3031
#include <stdlib.h>
3132
#include <stdint.h>
3233

0 commit comments

Comments
 (0)