From af436eb983ba78e98b95e84f17789837dcb31ebc Mon Sep 17 00:00:00 2001 From: Silvio Traversaro Date: Thu, 3 Oct 2024 23:11:31 +0200 Subject: [PATCH] conda: Set QT_HOST_PATH in conda's build.sh CMake template for osx-arm64 compat --- conda/cmake_recipe_template/build.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/conda/cmake_recipe_template/build.sh b/conda/cmake_recipe_template/build.sh index 5a641672a..a0837114b 100644 --- a/conda/cmake_recipe_template/build.sh +++ b/conda/cmake_recipe_template/build.sh @@ -7,11 +7,15 @@ cd {{ source_subdir }} mkdir build cd build +# QT_HOST_PATH is added as it is required on osx-arm64 for all +# packages that depend (even transitively) on qt6-main +# Workaround for https://github.com/conda-forge/qt-main-feedstock/issues/273 cmake .. \ -GNinja \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_PREFIX_PATH=$PREFIX \ -DCMAKE_INSTALL_PREFIX=$PREFIX \ + -DQT_HOST_PATH=$PREFIX \ -DCMAKE_INSTALL_LIBDIR=lib \ -DCMAKE_VERBOSE_MAKEFILE=OFF \ -DCMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP=True \