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
This commit is contained in:
Vasilis Tsiligiannis 2016-04-13 20:21:38 +00:00
parent d79e931ad0
commit d55512075b
1 changed files with 2 additions and 0 deletions

View File

@ -1,3 +1,5 @@
cmake_bool = $(patsubst %,-D%:BOOL=$(if $($(1)),ON,OFF),$(2))
PKG_INSTALL:=1 PKG_INSTALL:=1
ifneq ($(findstring c,$(OPENWRT_VERBOSE)),) ifneq ($(findstring c,$(OPENWRT_VERBOSE)),)