|
@@ -22,7 +22,7 @@
|
|
|
#
|
|
#
|
|
|
|
|
|
|
|
# Clean the CMake cache and CMake generated files in the build tree
|
|
# Clean the CMake cache and CMake generated files in the build tree
|
|
|
-if [ "$1" ] && [ -f "$1"/CMakeCache.txt ]; then BUILD=$1; elif [ -f $(pwd)/CMakeCache.txt ]; then BUILD=$(pwd); else echo -e "An error has occured, build tree has to be provided as the first argument OR call this script in a build tree itself\nUsage: ${0##*/} /path/to/build-tree"; exit 1; fi
|
|
|
|
|
|
|
+if [ "$1" ] && [ -f "$1"/CMakeCache.txt ]; then BUILD=$1; elif [ -f $(pwd)/CMakeCache.txt ]; then BUILD=$(pwd); else echo Usage: ${0##*/} /path/to/build-tree; exit 1; fi
|
|
|
rm -rf "$BUILD"/{CMakeCache.txt,CMakeFiles}
|
|
rm -rf "$BUILD"/{CMakeCache.txt,CMakeFiles}
|
|
|
touch "$BUILD"/CMakeCache.txt
|
|
touch "$BUILD"/CMakeCache.txt
|
|
|
|
|
|