Skip to content

Instantly share code, notes, and snippets.

@fk128
Created November 1, 2017 15:19
Show Gist options
  • Save fk128/58d2300d3a7c899458e194d52c05fe95 to your computer and use it in GitHub Desktop.
Save fk128/58d2300d3a7c899458e194d52c05fe95 to your computer and use it in GitHub Desktop.
Rebuild CMake project
#!/bin/bash
# rebuild CMake project
if [ -f build/CMakeCache.txt ]; then
rm -r build
mkdir build
cd build
cmake ..
make
else
echo "No CMakeCache file present."
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment