Author: acinonyx Date: 2016-04-13 22:21:38 +0200 (Wed, 13 Apr 2016) New Revision: 49164
Modified: trunk/include/cmake.mk Log: include/cmake.mk: Add helper macro to handle conditionals for CMake boolean type variables Signed-off-by: Vasilis Tsiligiannis <[email protected]> Modified: trunk/include/cmake.mk =================================================================== --- trunk/include/cmake.mk 2016-04-13 07:55:22 UTC (rev 49163) +++ trunk/include/cmake.mk 2016-04-13 20:21:38 UTC (rev 49164) @@ -1,3 +1,5 @@ +cmake_bool = $(patsubst %,-D%:BOOL=$(if $($(1)),ON,OFF),$(2)) + PKG_INSTALL:=1 ifneq ($(findstring c,$(OPENWRT_VERBOSE)),) _______________________________________________ openwrt-commits mailing list [email protected] https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits
