Make sure to clean CMake cache when rebuilding

This commit is contained in:
apio 2022-12-04 11:55:47 +01:00
parent 5d9c50eb12
commit a0c4bbe6f3
4 changed files with 10 additions and 8 deletions

View File

@ -7,8 +7,7 @@ cd $LUNA_ROOT
tools/setup.sh
rm -rf $BUILD_DIR
mkdir $BUILD_DIR
tools/full-clean.sh
cmake -S . -B $BUILD_DIR -DMOON_DEBUG_SYMBOLS=ON -G "$CMAKE_GEN"
cmake --build $BUILD_DIR

7
tools/full-clean.sh Executable file
View File

@ -0,0 +1,7 @@
#!/usr/bin/env bash
set -e
source $(dirname $0)/env.sh
rm -rf $BUILD_DIR
mkdir -p $BUILD_DIR

View File

@ -7,9 +7,7 @@ cd $LUNA_ROOT
tools/setup.sh
cd $BUILD_DIR
$BUILD clean
cd -
tools/full-clean.sh
cmake -S . -B $BUILD_DIR -G "$CMAKE_GEN"
cmake --build $BUILD_DIR

View File

@ -7,9 +7,7 @@ cd $LUNA_ROOT
tools/setup.sh
cd $BUILD_DIR
$BUILD clean
cd -
tools/full-clean.sh
cmake -S . -B $BUILD_DIR -G "$CMAKE_GEN"
cmake --build $BUILD_DIR