Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Trac #27485: Use sdh_cmake in the spkg-install for primecount.
Browse files Browse the repository at this point in the history
  • Loading branch information
embray committed Mar 14, 2019
1 parent b0fa3a0 commit b244e65
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions build/pkgs/primecount/spkg-install
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,18 @@
#
###############################################################################

if [ "$SAGE_LOCAL" = "" ]; then
echo >&2 "Error: SAGE_LOCAL undefined - exiting..."
echo >&2 "Maybe run 'sage -sh'?"
exit 1
fi

cd src

if [ "$SAGE_FAT_BINARY" = yes ]; then
EXTRA_OPTS="-DWITH_POPCNT=OFF"
fi

echo "Configuring primecount."
cmake . -DCMAKE_INSTALL_PREFIX=${SAGE_LOCAL} \
-DCMAKE_VERBOSE_MAKEFILE=ON \
-DBUILD_STATIC_LIBS=OFF \
-DBUILD_SHARED_LIBS=ON \
-DBUILD_TESTS=ON \
${EXTRA_OPTS}
sdh_cmake -DCMAKE_VERBOSE_MAKEFILE=ON \
-DBUILD_STATIC_LIBS=OFF \
-DBUILD_SHARED_LIBS=ON \
-DBUILD_TESTS=ON \
${EXTRA_OPTS}

sdh_make

Expand Down

0 comments on commit b244e65

Please sign in to comment.