i have no idea

This commit is contained in:
2025-07-11 02:28:33 +03:00
parent 2b0769e34d
commit 0eb69ef5c0
236 changed files with 22404 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
if (NOT EXISTS "/mnt/Drive2/Osmium/build/_deps/glfw-build/install_manifest.txt")
message(FATAL_ERROR "Cannot find install manifest: \"/mnt/Drive2/Osmium/build/_deps/glfw-build/install_manifest.txt\"")
endif()
file(READ "/mnt/Drive2/Osmium/build/_deps/glfw-build/install_manifest.txt" files)
string(REGEX REPLACE "\n" ";" files "${files}")
foreach (file ${files})
message(STATUS "Uninstalling \"$ENV{DESTDIR}${file}\"")
if (EXISTS "$ENV{DESTDIR}${file}")
exec_program("/snap/cmake/1468/bin/cmake" 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()
elseif (IS_SYMLINK "$ENV{DESTDIR}${file}")
EXEC_PROGRAM("/snap/cmake/1468/bin/cmake" 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 symlink \"$ENV{DESTDIR}${file}\"")
endif()
else()
message(STATUS "File \"$ENV{DESTDIR}${file}\" does not exist.")
endif()
endforeach()