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
Vasilis Tsiligiannis 8 years ago
parent d79e931ad0
commit d55512075b

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

Loading…
Cancel
Save