summaryrefslogtreecommitdiffstats
path: root/src/crypto/mac
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2013-11-03 10:32:00 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2013-11-03 10:32:00 +0100
commit7fe38b0200979c15cc27a84ab51b2730e7f2d30e (patch)
tree74291a659a18b72e3ff278b2300cb874ddab59aa /src/crypto/mac
parenteabbb5eb368df3ff606a472bd96a4a4077a214d8 (diff)
downloadfastd-7fe38b0200979c15cc27a84ab51b2730e7f2d30e.tar
fastd-7fe38b0200979c15cc27a84ab51b2730e7f2d30e.zip
Fix disabling modules
Diffstat (limited to 'src/crypto/mac')
-rw-r--r--src/crypto/mac/CMakeLists.txt6
1 files changed, 4 insertions, 2 deletions
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)