From 41f4d6994cff2aa55638b5b4f47146d82ebf185d Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Tue, 17 Jun 2008 15:40:43 +0000 Subject: added distclean target git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@427 90c681e8-e032-0410-971d-27865f9a5e38 --- cmake_uninstall.cmake.in | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'cmake_uninstall.cmake.in') diff --git a/cmake_uninstall.cmake.in b/cmake_uninstall.cmake.in index df95fb9d8..6790f7f15 100644 --- a/cmake_uninstall.cmake.in +++ b/cmake_uninstall.cmake.in @@ -6,16 +6,12 @@ FILE(READ "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt" files) STRING(REGEX REPLACE "\n" ";" files "${files}") FOREACH(file ${files}) MESSAGE(STATUS "Uninstalling \"$ENV{DESTDIR}${file}\"") - IF(EXISTS "$ENV{DESTDIR}${file}") EXEC_PROGRAM( - "@CMAKE_COMMAND@" ARGS "-E remove \"$ENV{DESTDIR}${file}\"" + rm ARGS "-rf \"$ENV{DESTDIR}${file}\"" OUTPUT_VARIABLE rm_out RETURN_VALUE rm_retval ) IF(NOT "${rm_retval}" STREQUAL 0) MESSAGE(FATAL_ERROR "Problem when removing \"$ENV{DESTDIR}${file}\"") ENDIF(NOT "${rm_retval}" STREQUAL 0) - ELSE(EXISTS "$ENV{DESTDIR}${file}") - MESSAGE(STATUS "File \"$ENV{DESTDIR}${file}\" does not exist.") - ENDIF(EXISTS "$ENV{DESTDIR}${file}") ENDFOREACH(file) -- cgit v1.2.3-13-gbd6f