diff options
| author | Bryce Harrington <bryce@bryceharrington.org> | 2016-01-17 21:54:51 +0000 |
|---|---|---|
| committer | bryce <bryce@bryceharrington.org> | 2016-01-17 21:54:51 +0000 |
| commit | 666582ac8ca0aebbbd20c629311f2ac2116bc979 (patch) | |
| tree | 900aef2469e37e5664ce77ef49ebbeb8a5ee896c /CMakeScripts | |
| parent | README: Add some basic cmake directions (diff) | |
| download | inkscape-666582ac8ca0aebbbd20c629311f2ac2116bc979.tar.gz inkscape-666582ac8ca0aebbbd20c629311f2ac2116bc979.zip | |
cmake: Add cleanup targets clean-cmake-files and clean-all
These are woefully incomplete but they at least get rid of the top level
cmake cruft. Further work will be needed to locate and remove all the
various generated cmake files.
For now, best practice is to use a parallel build, that can be
recursively deleted when needing to start fresh.
(bzr r14608)
Diffstat (limited to 'CMakeScripts')
| -rw-r--r-- | CMakeScripts/CleanAll.cmake | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/CMakeScripts/CleanAll.cmake b/CMakeScripts/CleanAll.cmake new file mode 100644 index 000000000..0b04d188f --- /dev/null +++ b/CMakeScripts/CleanAll.cmake @@ -0,0 +1,17 @@ +set(_generated + ${CMAKE_CURRENT_BINARY_DIR}/CMakeCache.txt + ${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake + ${CMAKE_CURRENT_BINARY_DIR}/cmake_install.cmake + ${CMAKE_CURRENT_BINARY_DIR}/po/cmake_install.cmake + ${CMAKE_CURRENT_BINARY_DIR}/Makefile + ${CMAKE_CURRENT_BINARY_DIR}/CMakeFiles +) + +message("${_generated}") + +foreach(file ${_generated}) + if(EXISTS ${file}) + message("Removing ${file}") + file(REMOVE_RECURSE ${file}) + endif() +endforeach(file) |
