From: Samuel Martin Date: Mon, 14 Apr 2014 22:31:08 +0000 (+0200) Subject: pkg-cmake.mk: add PATH in the configure command environment X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=aa0b88a0ca6d90d9a4350f5fcb2f4e3f2b43e44a;p=buildroot.git pkg-cmake.mk: add PATH in the configure command environment Because BR_PATH is not exported in the environment beforehand running cmake, it is necessary to add it on the cmake configure command. Signed-off-by: Samuel Martin Reviewed-by: "Yann E. MORIN" Signed-off-by: Thomas Petazzoni --- diff --git a/package/pkg-cmake.mk b/package/pkg-cmake.mk index f7e454bddd..bf3db90134 100644 --- a/package/pkg-cmake.mk +++ b/package/pkg-cmake.mk @@ -60,6 +60,7 @@ ifeq ($(4),target) define $(2)_CONFIGURE_CMDS (cd $$($$(PKG)_BUILDDIR) && \ rm -f CMakeCache.txt && \ + PATH=$(BR_PATH) \ $$($$(PKG)_CONF_ENV) $(HOST_DIR)/usr/bin/cmake $$($$(PKG)_SRCDIR) \ -DCMAKE_TOOLCHAIN_FILE="$$(HOST_DIR)/usr/share/buildroot/toolchainfile.cmake" \ -DCMAKE_INSTALL_PREFIX="/usr" \ @@ -74,6 +75,7 @@ else define $(2)_CONFIGURE_CMDS (cd $$($$(PKG)_BUILDDIR) && \ rm -f CMakeCache.txt && \ + PATH=$(BR_PATH) \ $(HOST_DIR)/usr/bin/cmake $$($$(PKG)_SRCDIR) \ -DCMAKE_INSTALL_SO_NO_EXE=0 \ -DCMAKE_FIND_ROOT_PATH="$$(HOST_DIR)" \