srdusr
aboutsummaryrefslogtreecommitdiffstats
path: root/legacy-cpp/cmake/Uninstall.cmake.in
diff options
context:
space:
mode:
authorsrdusr <[email protected]>2025-08-24 00:44:00 +0200
committersrdusr <[email protected]>2025-08-24 00:44:00 +0200
commit72e787a706d372c9a92e424e9b13ece929cb2bce (patch)
tree237ea5559a63474c2539761b6ce1015fc31dc1da /legacy-cpp/cmake/Uninstall.cmake.in
parent2a3fdcf2faf6cadb1fa49ed7c4b2963b554b0724 (diff)
downloadsrdwm-72e787a706d372c9a92e424e9b13ece929cb2bce.tar.gz
srdwm-72e787a706d372c9a92e424e9b13ece929cb2bce.zip
Remove the stale legacy-cpp implementation
The Rust rewrite (crates/) has fully superseded it - keeping both around was actively misleading (main looked like it still shipped a C++ build), and nothing here still depends on it.
Diffstat (limited to 'legacy-cpp/cmake/Uninstall.cmake.in')
-rw-r--r--legacy-cpp/cmake/Uninstall.cmake.in36
1 files changed, 0 insertions, 36 deletions
diff --git a/legacy-cpp/cmake/Uninstall.cmake.in b/legacy-cpp/cmake/Uninstall.cmake.in
deleted file mode 100644
index 2b630a8..0000000
--- a/legacy-cpp/cmake/Uninstall.cmake.in
+++ /dev/null
@@ -1,36 +0,0 @@
-if(NOT EXISTS "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt")
- message(FATAL_ERROR "Cannot find install manifest: @CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt")
-endif(NOT EXISTS "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt")
-
-file(READ "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt" files)
-string(STRIP "${files}" files)
-string(REGEX REPLACE "\n" ";" files "${files}")
-
-foreach(file ${files})
- message(STATUS "Uninstalling $ENV{DESTDIR}${file}")
- if(IS_SYMLINK "$ENV{DESTDIR}${file}" OR EXISTS "$ENV{DESTDIR}${file}")
- exec_program(
- "@CMAKE_COMMAND@" ARGS "-E remove \"$ENV{DESTDIR}${file}\""
- OUTPUT_VARIABLE rm_out
- RETURN_VALUE rm_retval
- )
- if(NOT "${rm_retval}" STREQUAL 0)
- message(FATAL_ERROR "Problem when removing $ENV{DESTDIR}${file}")
- endif(NOT "${rm_retval}" STREQUAL 0)
- else(IS_SYMLINK "$ENV{DESTDIR}${file}" OR EXISTS "$ENV{DESTDIR}${file}")
- message(STATUS "File $ENV{DESTDIR}${file} does not exist.")
- endif(IS_SYMLINK "$ENV{DESTDIR}${file}" OR EXISTS "$ENV{DESTDIR}${file}")
-endforeach(file)
-
-# Remove empty directories
-file(GLOB_RECURSE dirs "@CMAKE_INSTALL_PREFIX@/*")
-foreach(dir ${dirs})
- if(IS_DIRECTORY "${dir}")
- file(GLOB dir_files "${dir}/*")
- list(LENGTH dir_files num_files)
- if(num_files EQUAL 0)
- file(REMOVE_RECURSE "${dir}")
- message(STATUS "Removed empty directory: ${dir}")
- endif()
- endif()
-endforeach()