From c5d00bc22300ef4357ea7fc362522f9a18223810 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 9 Nov 2018 11:28:57 +0000 Subject: [PATCH] Added make clobber target, imported in from the VSG project. --- CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index a85a5d585..4a18930af 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1365,6 +1365,13 @@ IF(NOT OSG_CONFIG_HAS_BEEN_RUN_BEFORE) SET(OSG_CONFIG_HAS_BEEN_RUN_BEFORE 1 CACHE INTERNAL "Flag to track whether this is the first time running CMake or if CMake has been configured before") ENDIF() +#----------------------------------------------------------------------------- +# add clobber build target to clear all the non git registered files/directories +#----------------------------------------------------------------------------- +add_custom_target(clobber + COMMAND git clean -d -f -x +) + #----------------------------------------------------------------------------- ### uninstall target #-----------------------------------------------------------------------------