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")
5 FILE(READ "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt" files)
6 STRING(REGEX REPLACE "\n" ";" files "${files}")
8 MESSAGE(STATUS "Uninstalling \"${file}\"")
9 IF(NOT EXISTS "${file}")
10 MESSAGE(FATAL_ERROR "File \"${file}\" does not exists.")
11 ENDIF(NOT EXISTS "${file}")
12 EXEC_PROGRAM("@CMAKE_COMMAND@" ARGS "-E remove \"${file}\""
13 OUTPUT_VARIABLE rm_out
14 RETURN_VARIABLE rm_retval)
15 IF("${rm_retval}" GREATER 0)
16 MESSAGE(FATAL_ERROR "Problem when removing \"${file}\"")
17 ENDIF("${rm_retval}" GREATER 0)