|
@@ -85,7 +85,7 @@ define $(2)_CONFIGURE_CMDS
|
|
|
cd $$($$(PKG)_BUILDDIR) && \
|
|
|
rm -f CMakeCache.txt && \
|
|
|
PATH=$$(BR_PATH) \
|
|
|
- $$($$(PKG)_CONF_ENV) $$(HOST_DIR)/usr/bin/cmake $$($$(PKG)_SRCDIR) \
|
|
|
+ $$($$(PKG)_CONF_ENV) $$(BR2_CMAKE) $$($$(PKG)_SRCDIR) \
|
|
|
-DCMAKE_TOOLCHAIN_FILE="$$(HOST_DIR)/usr/share/buildroot/toolchainfile.cmake" \
|
|
|
-DCMAKE_BUILD_TYPE=$$(if $$(BR2_ENABLE_DEBUG),RelWithDebInfo,Release) \
|
|
|
-DCMAKE_INSTALL_PREFIX="/usr" \
|
|
@@ -110,7 +110,7 @@ define $(2)_CONFIGURE_CMDS
|
|
|
cd $$($$(PKG)_BUILDDIR) && \
|
|
|
rm -f CMakeCache.txt && \
|
|
|
PATH=$$(BR_PATH) \
|
|
|
- $$(HOST_DIR)/usr/bin/cmake $$($$(PKG)_SRCDIR) \
|
|
|
+ $$(BR2_CMAKE) $$($$(PKG)_SRCDIR) \
|
|
|
-DCMAKE_INSTALL_SO_NO_EXE=0 \
|
|
|
-DCMAKE_FIND_ROOT_PATH="$$(HOST_DIR)" \
|
|
|
-DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM="BOTH" \
|
|
@@ -146,7 +146,7 @@ endif
|
|
|
# primitives to find {C,LD}FLAGS, add it to the dependency list.
|
|
|
$(2)_DEPENDENCIES += host-pkgconf
|
|
|
|
|
|
-$(2)_DEPENDENCIES += host-cmake
|
|
|
+$(2)_DEPENDENCIES += $(BR2_CMAKE_HOST_DEPENDENCY)
|
|
|
|
|
|
#
|
|
|
# Build step. Only define it if not already defined by the package .mk
|