From 8222bfe56d4dabe8d92fc4b25ea1b0163b16f3e1 Mon Sep 17 00:00:00 2001 From: 3gg <3gg@shellblade.net> Date: Sat, 4 May 2024 16:51:29 -0700 Subject: Initial commit. --- src/contrib/SDL-2.30.2/cmake_uninstall.cmake.in | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/contrib/SDL-2.30.2/cmake_uninstall.cmake.in (limited to 'src/contrib/SDL-2.30.2/cmake_uninstall.cmake.in') diff --git a/src/contrib/SDL-2.30.2/cmake_uninstall.cmake.in b/src/contrib/SDL-2.30.2/cmake_uninstall.cmake.in new file mode 100644 index 0000000..1761561 --- /dev/null +++ b/src/contrib/SDL-2.30.2/cmake_uninstall.cmake.in @@ -0,0 +1,18 @@ +if (NOT EXISTS "@CMAKE_BINARY_DIR@/install_manifest.txt") + message(FATAL_ERROR "Cannot find install manifest: \"@CMAKE_BINARY_DIR@/install_manifest.txt\"") +endif(NOT EXISTS "@CMAKE_BINARY_DIR@/install_manifest.txt") + +file(READ "@CMAKE_BINARY_DIR@/install_manifest.txt" files) +string(REGEX REPLACE "\n" ";" files "${files}") +foreach (file ${files}) + message(STATUS "Uninstalling \"$ENV{DESTDIR}${file}\"") + execute_process( + COMMAND @CMAKE_COMMAND@ -E remove "$ENV{DESTDIR}${file}" + OUTPUT_VARIABLE rm_out + RESULT_VARIABLE rm_retval + ) + if(NOT ${rm_retval} EQUAL 0) + message(FATAL_ERROR "Problem when removing \"$ENV{DESTDIR}${file}\"") + endif (NOT ${rm_retval} EQUAL 0) +endforeach(file) + -- cgit v1.2.3