cmake: include/cmake.mk add CMAKE_BINARY_SUBDIR to allow out of source tree builds

Some packages need out of source tree building with cmake, for example
when building kernel modules.
See an example here:
https://sourceforge.net/p/accel-ppp/code/ci/master/tree/README

Signed-off-by: Luke McKee <hojuruku@gmail.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name> [cleanup, rework]
This commit is contained in:
Luke McKee
2016-07-24 02:00:24 +07:00
committed by Felix Fietkau
parent 009d6d6024
commit eadf5fb7f8
2 changed files with 6 additions and 3 deletions

View File

@@ -136,7 +136,7 @@ MAKE_INSTALL_FLAGS = \
$(MAKE_FLAGS) \
DESTDIR="$(PKG_INSTALL_DIR)"
MAKE_PATH = .
MAKE_PATH ?= .
define Build/Compile/Default
+$(MAKE_VARS) \