There will be maintenance performed on git.ligo.org, chat.ligo.org, containers.lig.org, and docs.ligo.org starting at 9am PDT on Tuesday 18th August 2020. There will be an extremely small period of downtime at the start of the maintenance window as various services are restarted. Please address any comments, questions, or concerns to computing-help@igwn.org.

Commit 2d12a1b0 authored by James Clark's avatar James Clark

Merge branch 'identify-osx-heathens' into 'master'

Use cmake for OSX, cmake3 for linux

See merge request !130
parents 98d8d15a 57875459
Pipeline #74837 passed with stages
in 14 minutes and 49 seconds
......@@ -3,13 +3,30 @@ set -e
INSTALL_PREFIX=$1
unameOut="$(uname -s)"
case "${unameOut}" in
Linux*)
machine=Linux
CMAKE=cmake3
;;
Darwin*)
machine=Darwin
CMAKE=cmake
;;
*)
machine="UNKNOWN:${unameOut}"
echo "Unsupported hostOS: ${machine}"
exit 1
esac
echo "Host OS is ${machine}. Using $CMAKE"
rm -rf build
mkdir -p build
pushd build
cmake3 .. \
${CMAKE} .. \
-DCMAKE_INSTALL_PREFIX=$INSTALL_PREFIX \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_EXPORT_COMPILE_COMMANDS=true
cmake3 --build . -- VERBOSE=1
cmake3 --build . --target install
${CMAKE} --build . -- VERBOSE=1
${CMAKE} --build . --target install
popd
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment