You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
1.2 KiB

  1. ################ CMake Uninstall Template #######################
  2. # CMake Template file for uninstallation of files
  3. # mentioned in 'install_manifest.txt'
  4. #
  5. # Used by uinstall target
  6. #################################################################
  7. set(MANIFEST "${CMAKE_CURRENT_BINARY_DIR}/install_manifest.txt")
  8. if(EXISTS ${MANIFEST})
  9. message(STATUS "============== Uninstalling Eigen ===================")
  10. file(STRINGS ${MANIFEST} files)
  11. foreach(file ${files})
  12. if(EXISTS ${file})
  13. message(STATUS "Removing file: '${file}'")
  14. execute_process(
  15. COMMAND ${CMAKE_COMMAND} -E remove ${file}
  16. OUTPUT_VARIABLE rm_out
  17. RESULT_VARIABLE rm_retval
  18. )
  19. if(NOT "${rm_retval}" STREQUAL 0)
  20. message(FATAL_ERROR "Failed to remove file: '${file}'.")
  21. endif()
  22. else()
  23. message(STATUS "File '${file}' does not exist.")
  24. endif()
  25. endforeach(file)
  26. message(STATUS "========== Finished Uninstalling Eigen ==============")
  27. else()
  28. message(STATUS "Cannot find install manifest: '${MANIFEST}'")
  29. message(STATUS "Probably make install has not been performed")
  30. message(STATUS " or install_manifest.txt has been deleted.")
  31. endif()