From d55512075b368ef060eae5f41b946a96936d1ceb Mon Sep 17 00:00:00 2001 From: Vasilis Tsiligiannis Date: Wed, 13 Apr 2016 20:21:38 +0000 Subject: [PATCH] include/cmake.mk: Add helper macro to handle conditionals for CMake boolean type variables Signed-off-by: Vasilis Tsiligiannis SVN-Revision: 49164 --- include/cmake.mk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/cmake.mk b/include/cmake.mk index a15cf3a671f..009c6c27728 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)),) -- 2.30.2