summaryrefslogtreecommitdiffstats
path: root/src/crypto
diff options
context:
space:
mode:
Diffstat (limited to 'src/crypto')
-rw-r--r--src/crypto/cipher/CMakeLists.txt6
-rw-r--r--src/crypto/mac/CMakeLists.txt6
2 files changed, 8 insertions, 4 deletions
diff --git a/src/crypto/cipher/CMakeLists.txt b/src/crypto/cipher/CMakeLists.txt
index 6cf6d64..3d70c70 100644
--- a/src/crypto/cipher/CMakeLists.txt
+++ b/src/crypto/cipher/CMakeLists.txt
@@ -16,9 +16,11 @@ macro(fastd_cipher_impl cipher name)
string(REPLACE - _ cipher_ "${cipher}")
string(TOUPPER "${cipher_}" CIPHER)
- set_property(GLOBAL APPEND PROPERTY FASTD_CIPHER_${CIPHER}_IMPLS ${name})
+ fastd_module(cipher enabled "cipher implementation" "${cipher} ${name}" ${ARGN})
- fastd_module(cipher "cipher implementation" "${cipher} ${name}" ${ARGN})
+ if(${enabled})
+ set_property(GLOBAL APPEND PROPERTY FASTD_CIPHER_${CIPHER}_IMPLS ${name})
+ endif(${enabled})
endmacro(fastd_cipher_impl)
macro(fastd_cipher_impl_include_directories cipher name)
diff --git a/src/crypto/mac/CMakeLists.txt b/src/crypto/mac/CMakeLists.txt
index eb3c903..8c80ee1 100644
--- a/src/crypto/mac/CMakeLists.txt
+++ b/src/crypto/mac/CMakeLists.txt
@@ -16,9 +16,11 @@ macro(fastd_mac_impl mac name)
string(REPLACE - _ mac_ "${mac}")
string(TOUPPER "${mac_}" MAC)
- set_property(GLOBAL APPEND PROPERTY FASTD_MAC_${MAC}_IMPLS ${name})
+ fastd_module(mac enabled "MAC implementation" "${mac} ${name}" ${ARGN})
- fastd_module(mac "MAC implementation" "${mac} ${name}" ${ARGN})
+ if(${enabled})
+ set_property(GLOBAL APPEND PROPERTY FASTD_MAC_${MAC}_IMPLS ${name})
+ endif(${enabled})
endmacro(fastd_mac_impl)
macro(fastd_mac_impl_include_directories mac name)