From f7be339ca11c6f8d9afd8ec9fd623eb862be913a Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Tue, 10 Jan 2017 15:43:26 +0100 Subject: Make WITH_CONTRIB an option that can be configured --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 6e8c3ec..3c62699 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -41,6 +41,8 @@ if (WITH_PROFILING) add_definitions("-pg") set(CMAKE_C_FLAGS "-pg") endif () + +option(WITH_CONTRIB "Enable contrib filters" OFF) #}}} #{{{ Common dependencies find_package(OpenCL REQUIRED) @@ -69,7 +71,7 @@ endif () add_subdirectory(docs) add_subdirectory(deps) add_subdirectory(src) -if ("${WITH_CONTRIB}") +if (WITH_CONTRIB) add_subdirectory(contrib) endif () #}}} -- cgit v1.2.1