From 41f20669ad897333414d4ee55c08f046d8591280 Mon Sep 17 00:00:00 2001 From: Axel Huebl Date: Thu, 19 Oct 2023 09:17:36 -0700 Subject: [PATCH] CTest: Skip for Cross-Compiles --- recipe/build.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/recipe/build.sh b/recipe/build.sh index 7b1aeb3..1c81bdc 100644 --- a/recipe/build.sh +++ b/recipe/build.sh @@ -49,7 +49,11 @@ cmake \ cmake --build build --parallel ${CPU_COUNT} # test -OMP_NUM_THREADS=2 ctest --test-dir build --output-on-failure +if [[ "${CONDA_BUILD_CROSS_COMPILATION:-}" == "1" ]]; then + echo "Skipping runtime tests due to cross-compiled target..." +else + OMP_NUM_THREADS=2 ctest --test-dir build --output-on-failure +fi # install cmake --build build --target install