Created
November 1, 2017 15:19
-
-
Save fk128/58d2300d3a7c899458e194d52c05fe95 to your computer and use it in GitHub Desktop.
Rebuild CMake project
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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