Skip to content

Commit

Permalink
CTest: Skip for Cross-Compiles
Browse files Browse the repository at this point in the history
  • Loading branch information
ax3l committed Oct 19, 2023
1 parent ee2fda7 commit 41f2066
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion recipe/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 41f2066

Please sign in to comment.