From: Felix Fietkau Date: Fri, 29 Jul 2016 20:47:46 +0000 (+0200) Subject: include/cmake.mk: fix host builds X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=50e7c1f79d0e72c6f6b63611c5b93fc8be2f70cf;p=openwrt%2Fopenwrt.git include/cmake.mk: fix host builds Signed-off-by: Felix Fietkau --- diff --git a/include/cmake.mk b/include/cmake.mk index fac2bc0227..483a151082 100644 --- a/include/cmake.mk +++ b/include/cmake.mk @@ -8,6 +8,7 @@ endif CMAKE_BINARY_DIR = $(PKG_BUILD_DIR)$(if $(CMAKE_BINARY_SUBDIR),/$(CMAKE_BINARY_SUBDIR)) CMAKE_SOURCE_DIR = $(PKG_BUILD_DIR) +HOST_CMAKE_SOURCE_DIR = $(HOST_BUILD_DIR) MAKE_PATH = $(firstword $(CMAKE_BINARY_SUBDIR) .) ifeq ($(CONFIG_EXTERNAL_TOOLCHAIN),) @@ -103,6 +104,6 @@ define Host/Configure/Default -DCMAKE_PREFIX_PATH=$(HOST_BUILD_PREFIX) \ -DCMAKE_SKIP_RPATH=TRUE \ $(CMAKE_HOST_OPTIONS) \ - $(CMAKE_SOURCE_DIR) \ + $(HOST_CMAKE_SOURCE_DIR) \ ) endef