robin/laufey

git clone https://git.robinwobin.dev/robin/laufey

Justin M. KeyesMerge #19015 delete cmake codeb2ed439bd5

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