From 6aaedb813fa11ba0679c3051bc2eb28646b9506c Mon Sep 17 00:00:00 2001 From: 3gg <3gg@shellblade.net> Date: Sat, 30 Aug 2025 16:53:58 -0700 Subject: Update to SDL3 --- src/contrib/SDL-3.2.20/cmake/cmake_uninstall.cmake.in | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/contrib/SDL-3.2.20/cmake/cmake_uninstall.cmake.in (limited to 'src/contrib/SDL-3.2.20/cmake/cmake_uninstall.cmake.in') diff --git a/src/contrib/SDL-3.2.20/cmake/cmake_uninstall.cmake.in b/src/contrib/SDL-3.2.20/cmake/cmake_uninstall.cmake.in new file mode 100644 index 0000000..9a59b4f --- /dev/null +++ b/src/contrib/SDL-3.2.20/cmake/cmake_uninstall.cmake.in @@ -0,0 +1,17 @@ +if (NOT EXISTS "@CMAKE_BINARY_DIR@/install_manifest.txt") + message(FATAL_ERROR "Cannot find install manifest: \"@CMAKE_BINARY_DIR@/install_manifest.txt\"") +endif() + +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() -- cgit v1.2.3