diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-11-03 03:34:00 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-11-03 03:34:00 +0100 |
commit | eabbb5eb368df3ff606a472bd96a4a4077a214d8 (patch) | |
tree | 211ad12c827a823949b1c5c3cc9dc4343e85ca01 /cmake/fastd_module.cmake | |
parent | e7893cc54fb0eaba0cfe88ff44cf52a3f7ff2200 (diff) | |
download | fastd-eabbb5eb368df3ff606a472bd96a4a4077a214d8.tar fastd-eabbb5eb368df3ff606a472bd96a4a4077a214d8.zip |
Improve build system for ciphers and MACs as well
Diffstat (limited to 'cmake/fastd_module.cmake')
-rw-r--r-- | cmake/fastd_module.cmake | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/cmake/fastd_module.cmake b/cmake/fastd_module.cmake index 1c2da9d..53b6d0f 100644 --- a/cmake/fastd_module.cmake +++ b/cmake/fastd_module.cmake @@ -1,10 +1,11 @@ -function(fastd_module type name) +function(fastd_module type info name) string(TOUPPER "${type}" TYPE) string(REPLACE - _ name_ "${name}") + string(REPLACE " " _ name_ "${name_}") string(TOUPPER "${name_}" NAME) - set(WITH_${TYPE}_${NAME} TRUE CACHE BOOL "Include the ${name} ${type}") + set(WITH_${TYPE}_${NAME} TRUE CACHE BOOL "Include the ${name} ${info}") if(WITH_${TYPE}_${NAME}) add_library(${type}_${name_} STATIC ${ARGN}) @@ -13,8 +14,6 @@ function(fastd_module type name) set_property(TARGET ${type}s APPEND PROPERTY LINK_LIBRARIES ${type}_${name_}) list(APPEND ${TYPE}S ${name_}) - - set_property(GLOBAL APPEND PROPERTY FASTD_${TYPE}S ${name_}) endif(WITH_${TYPE}_${NAME}) endfunction(fastd_module) @@ -22,6 +21,7 @@ function(fastd_module_include_directories type name) string(TOUPPER "${type}" TYPE) string(REPLACE - _ name_ "${name}") + string(REPLACE " " _ name_ "${name_}") string(TOUPPER "${name_}" NAME) if(WITH_${TYPE}_${NAME}) @@ -33,6 +33,7 @@ function(fastd_module_link_libraries type name) string(TOUPPER "${type}" TYPE) string(REPLACE - _ name_ "${name}") + string(REPLACE " " _ name_ "${name_}") string(TOUPPER "${name_}" NAME) if(WITH_${TYPE}_${NAME}) |