cmake_uninstall.cmake 1009 B

12345678910111213141516171819202122
  1. if(NOT EXISTS "/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/install_manifest.txt")
  2. message(FATAL_ERROR "Cannot find install manifest: \"/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/install_manifest.txt\"")
  3. endif()
  4. file(READ "/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/install_manifest.txt" files)
  5. string(REPLACE "\n" ";" files "${files}")
  6. foreach(file ${files})
  7. message(STATUS "Uninstalling \"$ENV{DESTDIR}${file}\"")
  8. if(EXISTS "$ENV{DESTDIR}${file}")
  9. exec_program(
  10. "/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake" ARGS "-E remove \"$ENV{DESTDIR}${file}\""
  11. OUTPUT_VARIABLE rm_out
  12. RETURN_VALUE rm_retval
  13. )
  14. if("${rm_retval}" STREQUAL 0)
  15. else()
  16. message(FATAL_ERROR "Problem when removing \"$ENV{DESTDIR}${file}\"")
  17. endif()
  18. else()
  19. message(STATUS "File \"$ENV{DESTDIR}${file}\" does not exist.")
  20. endif()
  21. endforeach()