summaryrefslogtreecommitdiffstats
path: root/cmake
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 /cmake
parenteabbb5eb368df3ff606a472bd96a4a4077a214d8 (diff)
downloadfastd-7fe38b0200979c15cc27a84ab51b2730e7f2d30e.tar
fastd-7fe38b0200979c15cc27a84ab51b2730e7f2d30e.zip
Fix disabling modules
Diffstat (limited to 'cmake')
-rw-r--r--cmake/fastd_module.cmake5
1 files changed, 4 insertions, 1 deletions
diff --git a/cmake/fastd_module.cmake b/cmake/fastd_module.cmake
index 53b6d0f..d18719a 100644
--- a/cmake/fastd_module.cmake
+++ b/cmake/fastd_module.cmake
@@ -1,4 +1,4 @@
-function(fastd_module type info name)
+function(fastd_module type enabled_var info name)
string(TOUPPER "${type}" TYPE)
string(REPLACE - _ name_ "${name}")
@@ -14,7 +14,10 @@ function(fastd_module type info name)
set_property(TARGET ${type}s APPEND PROPERTY LINK_LIBRARIES ${type}_${name_})
list(APPEND ${TYPE}S ${name_})
+
endif(WITH_${TYPE}_${NAME})
+
+ set(${enabled_var} ${WITH_${TYPE}_${NAME}} PARENT_SCOPE)
endfunction(fastd_module)
function(fastd_module_include_directories type name)