diff options
author | Vasilis Tsiligiannis <acinonyx@openwrt.gr> | 2016-04-13 20:21:38 +0000 |
---|---|---|
committer | Vasilis Tsiligiannis <acinonyx@openwrt.gr> | 2016-04-13 20:21:38 +0000 |
commit | d55512075b368ef060eae5f41b946a96936d1ceb (patch) | |
tree | feb010c3c65b85a12c4ee67f218f82e1aef8bf45 | |
parent | d79e931ad0cf50b446d1d5682c88253dc81b1433 (diff) | |
download | openwrt-d55512075b368ef060eae5f41b946a96936d1ceb.tar.gz openwrt-d55512075b368ef060eae5f41b946a96936d1ceb.tar.bz2 openwrt-d55512075b368ef060eae5f41b946a96936d1ceb.zip |
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
-rw-r--r-- | include/cmake.mk | 2 |
1 files changed, 2 insertions, 0 deletions
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)),) |