mirror of
https://github.com/openwrt/packages.git
synced 2026-04-15 10:51:55 +00:00
ninja: add custom target support for ninja-cmake
Allows fixing compilation with at least mariadb. Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
@@ -5,7 +5,7 @@ CMAKE_HOST_OPTIONS += -DCMAKE_GENERATOR="Ninja"
|
||||
CMAKE_OPTIONS += -DCMAKE_GENERATOR="Ninja"
|
||||
|
||||
define Host/Compile/Default
|
||||
$(call Ninja,-C $(HOST_BUILD_DIR)/$(CMAKE_BINARY_SUBDIR),)
|
||||
$(call Ninja,-C $(HOST_BUILD_DIR)/$(CMAKE_BINARY_SUBDIR) $(1),)
|
||||
endef
|
||||
|
||||
define Host/Install/Default
|
||||
@@ -17,7 +17,7 @@ define Host/Uninstall/Default
|
||||
endef
|
||||
|
||||
define Build/Compile/Default
|
||||
$(call Ninja,-C $(PKG_BUILD_DIR)/$(CMAKE_BINARY_SUBDIR),)
|
||||
$(call Ninja,-C $(PKG_BUILD_DIR)/$(CMAKE_BINARY_SUBDIR) $(1),)
|
||||
endef
|
||||
|
||||
define Build/Install/Default
|
||||
|
||||
Reference in New Issue
Block a user