From 8e1aaa5a93c4fd1f0268efebf69dcda10e519c6d Mon Sep 17 00:00:00 2001 From: Silvio Traversaro Date: Fri, 4 Oct 2024 00:14:51 +0200 Subject: [PATCH] conda: Set QT_HOST_PATH in conda's build.sh CMake template for osx-arm64 compat (#1729) --- 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 \