Debian Codegraph @

cmake_uninstall.cmake.in

raw
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
5 file(READ "@CMAKE_BINARY_DIR@/install_manifest.txt" files)
6 string(REGEX REPLACE "\n" ";" files "${files}")
7 foreach(file ${files})
8 message(STATUS "Uninstalling $ENV{DESTDIR}${file}")
9 if(IS_SYMLINK "$ENV{DESTDIR}${file}" OR EXISTS "$ENV{DESTDIR}${file}")
10 file(REMOVE_RECURSE $ENV{DESTDIR}${file})
11 else(IS_SYMLINK "$ENV{DESTDIR}${file}" OR EXISTS "$ENV{DESTDIR}${file}")
12 message(STATUS "File $ENV{DESTDIR}${file} does not exist.")
13 endif()
14 endforeach()
15
16 message(STATUS "Uninstalling @CAPSTONE_CMAKE_INSTALL_INCLUDEDIR@/capstone")
17 file(REMOVE_RECURSE @CAPSTONE_CMAKE_INSTALL_INCLUDEDIR@/capstone)
18
19 message(STATUS "Uninstalling @CAPSTONE_CMAKE_INSTALL_LIBDIR@/cmake/capstone")
20 file(REMOVE_RECURSE @CAPSTONE_CMAKE_INSTALL_LIBDIR@/cmake/capstone)