浏览代码

include/cmake.mk: Add helper macro to handle conditionals for CMake boolean type variables

Signed-off-by: Vasilis Tsiligiannis <[email protected]>

SVN-Revision: 49164
Vasilis Tsiligiannis 9 年之前
父节点
当前提交
d55512075b
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      include/cmake.mk

+ 2 - 0
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)),)