Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 24 lines (23 sloc) 1.011 kb
ca4c9147 »
2012-06-11 cmake support
1 if (NOT EXISTS "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt")
2 message(FATAL_ERROR "Cannot find install manifest:
3 \"@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt\"")
4 endif(NOT EXISTS "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt")
5
6 file(READ "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt" files)
7 string(REGEX REPLACE "\n" ";" files "${files}")
8 list(REVERSE files)
9 foreach (file ${files})
10 message(STATUS "Uninstalling \"$ENV{DESTDIR}${file}\"")
11 if (EXISTS "$ENV{DESTDIR}${file}")
12 execute_process(
13 COMMAND @CMAKE_COMMAND@ -E remove "$ENV{DESTDIR}${file}"
14 OUTPUT_VARIABLE rm_out
15 RESULT_VARIABLE rm_retval
16 )
17 if(NOT ${rm_retval} EQUAL 0)
18 message(FATAL_ERROR "Problem when removing
19 \"$ENV{DESTDIR}${file}\"")
20 endif (NOT ${rm_retval} EQUAL 0)
21 else (EXISTS "$ENV{DESTDIR}${file}")
22 message(STATUS "File \"$ENV{DESTDIR}${file}\" does not exist.")
23 endif (EXISTS "$ENV{DESTDIR}${file}")
24 endforeach(file)
Something went wrong with that request. Please try again.