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/methods/CMakeLists.txt | |
parent | eabbb5eb368df3ff606a472bd96a4a4077a214d8 (diff) | |
download | fastd-7fe38b0200979c15cc27a84ab51b2730e7f2d30e.tar fastd-7fe38b0200979c15cc27a84ab51b2730e7f2d30e.zip |
Fix disabling modules
Diffstat (limited to 'src/methods/CMakeLists.txt')
-rw-r--r-- | src/methods/CMakeLists.txt | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/methods/CMakeLists.txt b/src/methods/CMakeLists.txt index 0060f7c..f67ea0c 100644 --- a/src/methods/CMakeLists.txt +++ b/src/methods/CMakeLists.txt @@ -1,9 +1,12 @@ add_library(methods STATIC "${CMAKE_CURRENT_BINARY_DIR}/methods.c") -add_library(method_common STATIC "common.c") +add_library(method_common STATIC EXCLUDE_FROM_ALL "common.c") macro(fastd_method name) - fastd_module(method "method" ${name} ${ARGN}) - set_property(GLOBAL APPEND PROPERTY FASTD_METHODS ${name}) + fastd_module(method enabled "method" ${name} ${ARGN}) + + if(${enabled}) + set_property(GLOBAL APPEND PROPERTY FASTD_METHODS ${name}) + endif(${enabled}) endmacro(fastd_method) macro(fastd_method_include_directories) |