From 7fe38b0200979c15cc27a84ab51b2730e7f2d30e Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sun, 3 Nov 2013 10:32:00 +0100 Subject: Fix disabling modules --- src/methods/CMakeLists.txt | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/methods') 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) -- cgit v1.2.3