build-style/cmake: only set QT_HOST_PATH on cross build
They're used by QtBuildInternals to find other components configuration. With QT_HOST_PATH and QT_HOST_PATH_CMAKE_DIR set, cmake will only look into those directories.
This commit is contained in:
parent
2b7d3192b1
commit
e19f2af481
1 changed files with 7 additions and 4 deletions
|
@ -54,10 +54,13 @@ _EOF
|
||||||
cmake_args+=" -DCMAKE_INSTALL_PREFIX=/usr"
|
cmake_args+=" -DCMAKE_INSTALL_PREFIX=/usr"
|
||||||
cmake_args+=" -DCMAKE_BUILD_TYPE=None"
|
cmake_args+=" -DCMAKE_BUILD_TYPE=None"
|
||||||
cmake_args+=" -DCMAKE_INSTALL_LIBDIR=lib${XBPS_TARGET_WORDSIZE}"
|
cmake_args+=" -DCMAKE_INSTALL_LIBDIR=lib${XBPS_TARGET_WORDSIZE}"
|
||||||
cmake_args+=" -DQT_HOST_PATH=/usr"
|
|
||||||
# QT_HOST_PATH isn't enough in my system,
|
if [ "$CROSS_BUILD" ]; then
|
||||||
# which have binfmts support on and off
|
cmake_args+=" -DQT_HOST_PATH=/usr"
|
||||||
cmake_args+=" -DQT_HOST_PATH_CMAKE_DIR=/usr/lib/cmake"
|
# QT_HOST_PATH isn't enough in my system,
|
||||||
|
# which have binfmts support on and off
|
||||||
|
cmake_args+=" -DQT_HOST_PATH_CMAKE_DIR=/usr/lib/cmake"
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ $build_helper = *"qemu"* ]]; then
|
if [[ $build_helper = *"qemu"* ]]; then
|
||||||
echo "SET(CMAKE_CROSSCOMPILING_EMULATOR /usr/bin/qemu-${XBPS_TARGET_QEMU_MACHINE}-static)" \
|
echo "SET(CMAKE_CROSSCOMPILING_EMULATOR /usr/bin/qemu-${XBPS_TARGET_QEMU_MACHINE}-static)" \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue