aboutsummaryrefslogtreecommitdiff
path: root/modules/kde4_cmake_uninstall.cmake.in
diff options
context:
space:
mode:
authorAllen Winter <allen.winter@kdab.com>2011-06-30 17:36:45 -0400
committerAllen Winter <allen.winter@kdab.com>2011-06-30 17:36:45 -0400
commitd2b2c90a06bf1f4a21df196430d1f95856900410 (patch)
treeaba9d2a48d7b2ac1e960e1b68218394524c7e6a8 /modules/kde4_cmake_uninstall.cmake.in
parente15ffacc69242c89107afbfda6f8ece9f2b56633 (diff)
downloadextra-cmake-modules-d2b2c90a06bf1f4a21df196430d1f95856900410.tar.gz
extra-cmake-modules-d2b2c90a06bf1f4a21df196430d1f95856900410.tar.bz2
Move the modules, modules-test and systeminfo subdirs into 'attic'
Diffstat (limited to 'modules/kde4_cmake_uninstall.cmake.in')
-rw-r--r--modules/kde4_cmake_uninstall.cmake.in22
1 files changed, 0 insertions, 22 deletions
diff --git a/modules/kde4_cmake_uninstall.cmake.in b/modules/kde4_cmake_uninstall.cmake.in
deleted file mode 100644
index 36dd9ba8..00000000
--- a/modules/kde4_cmake_uninstall.cmake.in
+++ /dev/null
@@ -1,22 +0,0 @@
-IF(NOT EXISTS "@CMAKE_BINARY_DIR@/install_manifest.txt")
- MESSAGE(FATAL_ERROR "Cannot find install manifest: \"@CMAKE_BINARY_DIR@/install_manifest.txt\"")
-ENDIF(NOT EXISTS "@CMAKE_BINARY_DIR@/install_manifest.txt")
-
-FILE(READ "@CMAKE_BINARY_DIR@/install_manifest.txt" files)
-STRING(REGEX REPLACE "\n" ";" files "${files}")
-FOREACH(file ${files})
- MESSAGE(STATUS "Uninstalling \"${file}\"")
- IF(EXISTS "${file}")
- EXEC_PROGRAM(
- "@CMAKE_COMMAND@" ARGS "-E remove \"${file}\""
- OUTPUT_VARIABLE rm_out
- RETURN_VALUE rm_retval
- )
- IF("${rm_retval}" STREQUAL 0)
- ELSE("${rm_retval}" STREQUAL 0)
- MESSAGE(FATAL_ERROR "Problem when removing \"${file}\"")
- ENDIF("${rm_retval}" STREQUAL 0)
- ELSE(EXISTS "${file}")
- MESSAGE(STATUS "File \"${file}\" does not exist.")
- ENDIF(EXISTS "${file}")
-ENDFOREACH(file)