summaryrefslogtreecommitdiffstats
path: root/include/cmake.mk
diff options
context:
space:
mode:
authorVasilis Tsiligiannis <acinonyx@openwrt.gr>2016-04-13 20:21:38 +0000
committerVasilis Tsiligiannis <acinonyx@openwrt.gr>2016-04-13 20:21:38 +0000
commitd55512075b368ef060eae5f41b946a96936d1ceb (patch)
treefeb010c3c65b85a12c4ee67f218f82e1aef8bf45 /include/cmake.mk
parentd79e931ad0cf50b446d1d5682c88253dc81b1433 (diff)
downloadmaster-31e0f0ae-d55512075b368ef060eae5f41b946a96936d1ceb.tar.gz
master-31e0f0ae-d55512075b368ef060eae5f41b946a96936d1ceb.tar.bz2
master-31e0f0ae-d55512075b368ef060eae5f41b946a96936d1ceb.zip
include/cmake.mk: Add helper macro to handle conditionals for CMake boolean type variables
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr> SVN-Revision: 49164
Diffstat (limited to 'include/cmake.mk')
-rw-r--r--include/cmake.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/cmake.mk b/include/cmake.mk
index a15cf3a671..009c6c2772 100644
--- a/include/cmake.mk
+++ b/include/cmake.mk
@@ -1,3 +1,5 @@
+cmake_bool = $(patsubst %,-D%:BOOL=$(if $($(1)),ON,OFF),$(2))
+
PKG_INSTALL:=1
ifneq ($(findstring c,$(OPENWRT_VERBOSE)),)