polserver/bin-build/build_linux.sh
turleypol 3afc41241b
CMake on windows (#48)
CMake can now also be used for windows
2018-02-24 22:34:55 +01:00

10 lines
244 B
Bash
Executable file

#!/bin/sh
CPU_CORES=`grep -c ^processor /proc/cpuinfo`
USED_CPU_CORES=$(($CPU_CORES + 1))
if [ -z "$CMAKE_BIN" ]; then CMAKE_BIN='cmake'; fi
`$CMAKE_BIN ..`
echo "#### Using $USED_CPU_CORES parallel compile jobs ###"
make -j $USED_CPU_CORES