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(REGEX REPLACE "\n" ";" files "${files}")
9 MESSAGE(STATUS "Uninstalling \"${file}\"")
12 "@CMAKE_COMMAND@" ARGS "-E remove \"${file}\""
13 OUTPUT_VARIABLE rm_out
14 RETURN_VALUE rm_retval
16 IF(NOT "${rm_retval}" STREQUAL 0)
17 MESSAGE(FATAL_ERROR "Problem when removing \"${file}\"")
20 MESSAGE(STATUS "File \"${file}\" does not exist.")