mirror of
https://github.com/openwrt/packages.git
synced 2026-12-06 00:05:31 +04: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:
1 parent
55816b9294
commit
3ad92293da
1 file changed
+2
-2
@@ -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