aboutsummaryrefslogtreecommitdiff
path: root/cmake_uninstall.cmake.in
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2008-06-17 15:40:43 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2008-06-17 15:40:43 +0000
commit41f4d6994cff2aa55638b5b4f47146d82ebf185d (patch)
treead46df40cf6dc05569d8e7daffdef8960f131a79 /cmake_uninstall.cmake.in
parentbdc1755bc730e3b0e9553be7d0b04cf3db6d69ff (diff)
downloadqmmp-41f4d6994cff2aa55638b5b4f47146d82ebf185d.tar.gz
qmmp-41f4d6994cff2aa55638b5b4f47146d82ebf185d.tar.bz2
qmmp-41f4d6994cff2aa55638b5b4f47146d82ebf185d.zip
added distclean target
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@427 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'cmake_uninstall.cmake.in')
-rw-r--r--cmake_uninstall.cmake.in6
1 files changed, 1 insertions, 5 deletions
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)