From 8636ad8394543ceec76b21cc14232e7c22aaaed8 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 bddc61a8b..2f80696bb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1316,6 +1316,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 #-----------------------------------------------------------------------------