~ubuntu-branches/debian/experimental/kopete/experimental

« back to all changes in this revision

Viewing changes to protocols/jabber/libiris/src/jdns/cmake_uninstall.cmake.in

  • Committer: Package Import Robot
  • Author(s): Maximiliano Curia
  • Date: 2015-02-24 11:32:57 UTC
  • mfrom: (1.1.41 vivid)
  • Revision ID: package-import@ubuntu.com-20150224113257-gnupg4v7lzz18ij0
Tags: 4:14.12.2-1
* New upstream release (14.12.2).
* Bump Standards-Version to 3.9.6, no changes needed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
if(NOT EXISTS "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt")
 
2
  message(FATAL_ERROR "Cannot find install manifest: \"@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt\"")
 
3
endif(NOT EXISTS "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt")
 
4
 
 
5
file(READ "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt" files)
 
6
string(REGEX REPLACE "\n" ";" files "${files}")
 
7
foreach(file ${files})
 
8
  message(STATUS "Uninstalling \"$ENV{DESTDIR}${file}\"")
 
9
  exec_program(
 
10
  "@CMAKE_COMMAND@" ARGS "-E remove \"$ENV{DESTDIR}${file}\""
 
11
  OUTPUT_VARIABLE rm_out
 
12
  RETURN_VALUE rm_retval
 
13
  )
 
14
  if(NOT "${rm_retval}" STREQUAL 0)
 
15
  message(FATAL_ERROR "Problem when removing \"$ENV{DESTDIR}${file}\"")
 
16
  endif(NOT "${rm_retval}" STREQUAL 0)
 
17
endforeach(file)