Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -104,14 +104,15 @@ echo "Configuring ..."
echo ""

# Create build directory
if [ ! -d "./$BUILD_DIR" ]
if [ ! -d "$BUILD_DIR" ]
then
mkdir $BUILD_DIR
mkdir -p "$BUILD_DIR"
fi

# Configure project
PREVIOUS_DIR=$(pwd)
cd $BUILD_DIR
cmake -G "$CMAKE_GENERATOR" "-DCMAKE_BUILD_TYPE=$BUILD_TYPE" $CMAKE_OPTIONS ..
cmake -G "$CMAKE_GENERATOR" "-DCMAKE_BUILD_TYPE=$BUILD_TYPE" $CMAKE_OPTIONS "$PREVIOUS_DIR"
if [ $? == 0 ]
then
echo ""
Expand All @@ -123,4 +124,4 @@ else
echo "Configuration failed.";
fi

cd ..
cd "$PREVIOUS_DIR"