Skip to content

Commit

Permalink
Fixed install script, reduce Cmake minimum ver
Browse files Browse the repository at this point in the history
  • Loading branch information
CodePurble committed May 17, 2020
1 parent 8b3e0e4 commit f60f61c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.17)
cmake_minimum_required(VERSION 3.10)
project (rp-scrabble)

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall")
Expand Down
6 changes: 3 additions & 3 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
BUILD_DIR=build/
EXEC=rp-scrabble
INSTALL_DIR=$HOME/.local/bin
LOG_DIR=$HOME/.local/rp-scrabble/logs
LOG_DIR=$HOME/.local/share/rp-scrabble/logs

CMAKE_CHECK=$(cmake --version | grep version)

Expand Down Expand Up @@ -57,8 +57,8 @@ esac


echo "Making build directories..."
if [ ! -d "$BUILD_DIR" ]; then mkdir -p $BUILD_DIR; fi
if [ ! -d "$LOG_DIR" ]; then mkdir -p $LOG_DIR; fi
if [ ! -d "$BUILD_DIR" ]; then mkdir -vp $BUILD_DIR; fi
if [ ! -d "$LOG_DIR" ]; then mkdir -vp $LOG_DIR; fi

cd $BUILD_DIR

Expand Down

0 comments on commit f60f61c

Please sign in to comment.