1
0
Fork 0
mirror of https://git.openwrt.org/openwrt/openwrt.git synced 2024-06-09 16:26:29 +02:00

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)),)