mirror of
https://github.com/neovim/neovim.git
synced 2024-12-25 13:45:15 -07:00
14 lines
510 B
CMake
14 lines
510 B
CMake
|
if(NOT EXISTS "${CMAKE_BINARY_DIR}/install_manifest.txt")
|
||
|
message(FATAL_ERROR "Cannot find install manifest: ${CMAKE_BINARY_DIR}/install_manifest.txt")
|
||
|
endif()
|
||
|
|
||
|
file(STRINGS "${CMAKE_BINARY_DIR}/install_manifest.txt" files)
|
||
|
foreach(file ${files})
|
||
|
message(STATUS "Uninstalling $ENV{DESTDIR}${file}")
|
||
|
if(IS_SYMLINK "$ENV{DESTDIR}${file}" OR EXISTS "$ENV{DESTDIR}${file}")
|
||
|
file(REMOVE $ENV{DESTDIR}${file})
|
||
|
else()
|
||
|
message(STATUS "File $ENV{DESTDIR}${file} does not exist.")
|
||
|
endif()
|
||
|
endforeach()
|