summaryrefslogtreecommitdiffstats
path: root/src/crypto/mac/CMakeLists.txt
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2014-04-30 03:40:15 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2014-04-30 03:40:15 +0200
commit8e589f3a3ad74dd4409632222c589aea7c0939a5 (patch)
tree8806a5a828ca1c0449b63c3a80f72f00226715f4 /src/crypto/mac/CMakeLists.txt
parent0d0a857c696b653a65c709bbfb11bdaff67369b8 (diff)
downloadfastd-8e589f3a3ad74dd4409632222c589aea7c0939a5.tar
fastd-8e589f3a3ad74dd4409632222c589aea7c0939a5.zip
Fix CMake errors on some config combinations
Diffstat (limited to 'src/crypto/mac/CMakeLists.txt')
-rw-r--r--src/crypto/mac/CMakeLists.txt28
1 files changed, 24 insertions, 4 deletions
diff --git a/src/crypto/mac/CMakeLists.txt b/src/crypto/mac/CMakeLists.txt
index 355416f..971c04b 100644
--- a/src/crypto/mac/CMakeLists.txt
+++ b/src/crypto/mac/CMakeLists.txt
@@ -23,19 +23,39 @@ macro(fastd_mac_impl mac name)
endmacro(fastd_mac_impl)
macro(fastd_mac_impl_include_directories mac name)
- fastd_module_include_directories(mac "${mac} ${name}" ${ARGN})
+ string(REPLACE - _ mac_ "${mac}")
+ string(TOUPPER "${mac_}" MAC)
+
+ if(WITH_MAC_${MAC})
+ fastd_module_include_directories(mac "${mac} ${name}" ${ARGN})
+ endif(WITH_MAC_${MAC})
endmacro(fastd_mac_impl_include_directories)
macro(fastd_mac_impl_link_libraries mac name)
- fastd_module_link_libraries(mac "${mac} ${name}" ${ARGN})
+ string(REPLACE - _ mac_ "${mac}")
+ string(TOUPPER "${mac_}" MAC)
+
+ if(WITH_MAC_${MAC})
+ fastd_module_link_libraries(mac "${mac} ${name}" ${ARGN})
+ endif(WITH_MAC_${MAC})
endmacro(fastd_mac_impl_link_libraries)
macro(fastd_mac_impl_require mac name)
- fastd_module_require(mac "${mac} ${name}" ${ARGN})
+ string(REPLACE - _ mac_ "${mac}")
+ string(TOUPPER "${mac_}" MAC)
+
+ if(WITH_MAC_${MAC})
+ fastd_module_require(mac "${mac} ${name}" ${ARGN})
+ endif(WITH_MAC_${MAC})
endmacro(fastd_mac_impl_require)
macro(fastd_mac_impl_compile_flags mac name source)
- fastd_module_compile_flags(mac "${mac} ${name}" ${source} ${ARGN})
+ string(REPLACE - _ mac_ "${mac}")
+ string(TOUPPER "${mac_}" MAC)
+
+ if(WITH_MAC_${MAC})
+ fastd_module_compile_flags(mac "${mac} ${name}" ${source} ${ARGN})
+ endif(WITH_MAC_${MAC})
endmacro(fastd_mac_impl_compile_flags)