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\"")
5 file(READ "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt" files)
6 string(REPLACE "\n" ";" files "${files}")
8 message(STATUS "Uninstalling \"$ENV{DESTDIR}${file}\"")
9 if(EXISTS "$ENV{DESTDIR}${file}")
11 COMMAND "@CMAKE_COMMAND@" -E rm -f "$ENV{DESTDIR}${file}"
12 OUTPUT_VARIABLE rm_out
13 RESULT_VARIABLE rm_retval
15 if("${rm_retval}" STREQUAL 0)
17 message(FATAL_ERROR "Problem when removing \"$ENV{DESTDIR}${file}\"")
20 message(STATUS "File \"$ENV{DESTDIR}${file}\" does not exist.")