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

View file

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