Skip to content

Commit

Permalink
don't build tests in cross-compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
h-vetinari committed Sep 4, 2022
1 parent 28b7dce commit 41bb7b7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions recipe/build-lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,12 @@ else
cd build-shared
fi

if [[ "$CONDA_BUILD_CROSS_COMPILATION" != 1 ]]; then
export CMAKE_ARGS="${CMAKE_ARGS} -Dprotobuf_BUILD_TESTS=OFF"
fi

cmake -G "Ninja" \
${CMAKE_ARGS} \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=$PREFIX \
-Dprotobuf_WITH_ZLIB=ON \
Expand Down

0 comments on commit 41bb7b7

Please sign in to comment.