~jbicha/unity-2d/fix-launcher-quicklist-naming-lp949636

« back to all changes in this revision

Viewing changes to cmake_uninstall.cmake.in

  • Committer: Renato Araujo Oliveira Filho
  • Date: 2011-11-11 13:36:49 UTC
  • mto: This revision was merged to the branch mainline in revision 778.
  • Revision ID: renato.filho@canonical.com-20111111133649-5mi7fiv2afqzlwlo
[cmake] Fixed uninstall script.

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
STRING(REGEX REPLACE "\n" ";" files "${files}")
7
7
FOREACH(file ${files})
8
8
  MESSAGE(STATUS "Uninstalling \"$ENV{DESTDIR}${file}\"")
9
 
  IF(EXISTS "$ENV{DESTDIR}${file}")
10
 
    EXEC_PROGRAM(
 
9
  EXEC_PROGRAM(
11
10
      "@CMAKE_COMMAND@" ARGS "-E remove \"$ENV{DESTDIR}${file}\""
12
11
      OUTPUT_VARIABLE rm_out
13
12
      RETURN_VALUE rm_retval
14
13
      )
15
 
    IF(NOT "${rm_retval}" STREQUAL 0)
 
14
  IF(NOT "${rm_retval}" STREQUAL 0)
16
15
      MESSAGE(FATAL_ERROR "Problem when removing \"$ENV{DESTDIR}${file}\"")
17
 
    ENDIF(NOT "${rm_retval}" STREQUAL 0)
18
 
  ELSE(EXISTS "$ENV{DESTDIR}${file}")
19
 
    MESSAGE(STATUS "File \"$ENV{DESTDIR}${file}\" does not exist.")
20
 
  ENDIF(EXISTS "$ENV{DESTDIR}${file}")
 
16
  ENDIF(NOT "${rm_retval}" STREQUAL 0)
21
17
ENDFOREACH(file)