From: Vasilis Tsiligiannis Date: Wed, 13 Apr 2016 20:21:38 +0000 (+0000) Subject: include/cmake.mk: Add helper macro to handle conditionals for CMake boolean type... X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=36ff1751231340af6d8f66d79e9fb4a2e2e9c482;p=openwrt%2Fsvn-archive%2Farchive.git include/cmake.mk: Add helper macro to handle conditionals for CMake boolean type variables Signed-off-by: Vasilis Tsiligiannis SVN-Revision: 49164 --- 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)),)