From: Vasilis Tsiligiannis Date: Wed, 13 Apr 2016 20:21:38 +0000 (+0000) Subject: include/cmake.mk: Add helper macro to handle conditionals for CMake boolean type... X-Git-Tag: reboot~74 X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fstaging%2Flynxis.git;a=commitdiff_plain;h=d55512075b368ef060eae5f41b946a96936d1ceb include/cmake.mk: Add helper macro to handle conditionals for CMake boolean type variables Signed-off-by: Vasilis Tsiligiannis SVN-Revision: 49164 --- diff --git a/include/cmake.mk b/include/cmake.mk index a15cf3a671..009c6c2772 100644 --- a/include/cmake.mk +++ b/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)),)