diff options
author | Felix Fietkau <nbd@nbd.name> | 2016-07-29 22:47:46 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2016-07-29 22:47:46 +0200 |
commit | 50e7c1f79d0e72c6f6b63611c5b93fc8be2f70cf (patch) | |
tree | 36342c446c5b2325eab9241723cf19d2f167ce2f /include/cmake.mk | |
parent | b2ddfbc1c7b935cf931b4c336969b65947270ce9 (diff) | |
download | mtk-20170518-50e7c1f79d0e72c6f6b63611c5b93fc8be2f70cf.zip mtk-20170518-50e7c1f79d0e72c6f6b63611c5b93fc8be2f70cf.tar.gz mtk-20170518-50e7c1f79d0e72c6f6b63611c5b93fc8be2f70cf.tar.bz2 |
include/cmake.mk: fix host builds
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'include/cmake.mk')
-rw-r--r-- | include/cmake.mk | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/cmake.mk b/include/cmake.mk index fac2bc0..483a151 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 |