diff options
Diffstat (limited to 'libcmix-crypto/elgamal/gcrypt/CMakeLists.txt')
| -rw-r--r-- | libcmix-crypto/elgamal/gcrypt/CMakeLists.txt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libcmix-crypto/elgamal/gcrypt/CMakeLists.txt b/libcmix-crypto/elgamal/gcrypt/CMakeLists.txt index cbd49ec..85d532b 100644 --- a/libcmix-crypto/elgamal/gcrypt/CMakeLists.txt +++ b/libcmix-crypto/elgamal/gcrypt/CMakeLists.txt @@ -4,10 +4,18 @@ get_target_name(target_name) find_package(Gcrypt REQUIRED) +option(trace_pointers "trace alloced pointers by gcrypt" OFF) + add_library(${target_name} SHARED gcrypt_elgamal.c ) +if(trace_pointers) + target_compile_definitions(${target_name} + PRIVATE "POINTER_TRACING" + ) +endif(trace_pointers) + target_compile_options(${target_name} PUBLIC ${Gcrypt_CFLAGS} ) |
