From 666582ac8ca0aebbbd20c629311f2ac2116bc979 Mon Sep 17 00:00:00 2001 From: Bryce Harrington Date: Sun, 17 Jan 2016 13:54:51 -0800 Subject: 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) --- CMakeScripts/CleanAll.cmake | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 CMakeScripts/CleanAll.cmake (limited to 'CMakeScripts/CleanAll.cmake') 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) -- cgit v1.2.3