Browse Source

ninja: add custom target support for ninja-cmake

Allows fixing compilation with at least mariadb.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
lilik-openwrt-22.03
Rosen Penev 4 years ago
parent
commit
3ad92293da
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      devel/ninja/ninja-cmake.mk

+ 2
- 2
devel/ninja/ninja-cmake.mk View File

@ -5,7 +5,7 @@ CMAKE_HOST_OPTIONS += -DCMAKE_GENERATOR="Ninja"
CMAKE_OPTIONS += -DCMAKE_GENERATOR="Ninja" CMAKE_OPTIONS += -DCMAKE_GENERATOR="Ninja"
define Host/Compile/Default define Host/Compile/Default
$(call Ninja,-C $(HOST_BUILD_DIR)/$(CMAKE_BINARY_SUBDIR),)
$(call Ninja,-C $(HOST_BUILD_DIR)/$(CMAKE_BINARY_SUBDIR) $(1),)
endef endef
define Host/Install/Default define Host/Install/Default
@ -17,7 +17,7 @@ define Host/Uninstall/Default
endef endef
define Build/Compile/Default define Build/Compile/Default
$(call Ninja,-C $(PKG_BUILD_DIR)/$(CMAKE_BINARY_SUBDIR),)
$(call Ninja,-C $(PKG_BUILD_DIR)/$(CMAKE_BINARY_SUBDIR) $(1),)
endef endef
define Build/Install/Default define Build/Install/Default


Loading…
Cancel
Save