cmake_clean.sh 432 B

1234567891011
  1. #!/usr/bin/env bash
  2. # Copyright (c) 2008-2023 the Urho3D project
  3. # License: MIT
  4. # Clean the CMake cache and CMake generated files in the build tree
  5. 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
  6. rm -rf "$BUILD"/{CMakeCache.txt,CMakeFiles}
  7. touch "$BUILD"/CMakeCache.txt
  8. # vi: set ts=4 sw=4 expandtab: