UninstallHelper.cmake 510 B

1234567891011121314
  1. if(NOT EXISTS "${CMAKE_BINARY_DIR}/install_manifest.txt")
  2. message(FATAL_ERROR "Cannot find install manifest: ${CMAKE_BINARY_DIR}/install_manifest.txt")
  3. endif()
  4. file(STRINGS "${CMAKE_BINARY_DIR}/install_manifest.txt" files)
  5. foreach(file ${files})
  6. message(STATUS "Uninstalling $ENV{DESTDIR}${file}")
  7. if(IS_SYMLINK "$ENV{DESTDIR}${file}" OR EXISTS "$ENV{DESTDIR}${file}")
  8. file(REMOVE $ENV{DESTDIR}${file})
  9. else()
  10. message(STATUS "File $ENV{DESTDIR}${file} does not exist.")
  11. endif()
  12. endforeach()