]> git.proxmox.com Git - ceph.git/blame - ceph/do_cmake.sh
bump version to 12.2.10-pve1
[ceph.git] / ceph / do_cmake.sh
CommitLineData
7c673cae
FG
1#!/bin/sh -x
2git submodule update --init --recursive
3if test -e build; then
4 echo 'build dir already exists; rm -rf build and re-run'
5 exit 1
6fi
31f18b77
FG
7
8ARGS=""
9if which ccache ; then
10 echo "enabling ccache"
c07f9fc5 11 ARGS="$ARGS -DWITH_CCACHE=ON"
31f18b77
FG
12fi
13
7c673cae
FG
14mkdir build
15cd build
31f18b77 16cmake -DBOOST_J=$(nproc) $ARGS "$@" ..
7c673cae
FG
17
18# minimal config to find plugins
19cat <<EOF > ceph.conf
20plugin dir = lib
21erasure code dir = lib
22EOF
23
24# give vstart a (hopefully) unique mon port to start with
25echo $(( RANDOM % 1000 + 40000 )) > .ceph_port
26
27echo done.