summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalf Habacker <ralf.habacker@freenet.de>2016-11-24 11:33:11 (GMT)
committerRalf Habacker <ralf.habacker@freenet.de>2016-11-24 11:33:11 (GMT)
commit27a444cff39b52ac658ae1166a7cba27d9eb9c4b (patch)
treea9f07ce659b4faa98e09c24f0080eed4ecf289cd
parent44f3d39667460a750fc36cc4ce408f2f71111a13 (diff)
Propagate variables for unstable features also to cmake build files.
For the unstable feature xxx the cmake variable ENABLE_xxx is set to 0 or 1 according to the feature state.
-rw-r--r--CMakeLists.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 377c278..4969d82 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -239,8 +239,10 @@ include_directories(
macro(add_unstable_feature name)
if(UMBRELLO_VERSION_PATCH GREATER 69)
add_definitions(-DENABLE_${name})
+ set(ENABLE_${name} 1)
message(STATUS "Enable unstable feature ${name} - use '#ifdef ENABLE_${name}' in related code")
else()
+ set(ENABLE_${name} 0)
message(STATUS "Disable unstable feature ${name}")
endif()
endmacro(add_unstable_feature)