diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-11-03 10:32:00 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-11-03 10:32:00 +0100 |
commit | 7fe38b0200979c15cc27a84ab51b2730e7f2d30e (patch) | |
tree | 74291a659a18b72e3ff278b2300cb874ddab59aa /src/crypto/cipher | |
parent | eabbb5eb368df3ff606a472bd96a4a4077a214d8 (diff) | |
download | fastd-7fe38b0200979c15cc27a84ab51b2730e7f2d30e.tar fastd-7fe38b0200979c15cc27a84ab51b2730e7f2d30e.zip |
Fix disabling modules
Diffstat (limited to 'src/crypto/cipher')
-rw-r--r-- | src/crypto/cipher/CMakeLists.txt | 6 |
1 files changed, 4 insertions, 2 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) |