aboutsummaryrefslogtreecommitdiff
path: root/raylib/src/external/glfw/CMake/cmake_uninstall.cmake.in
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2025-04-21 11:09:56 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2025-04-21 11:09:56 +0200
commit123144c93bfc77883c8fb517828b47bbe13b8671 (patch)
tree762739afedb5f3f168051367515cb9b9a06ec68d /raylib/src/external/glfw/CMake/cmake_uninstall.cmake.in
downloadminesweeper-master.tar.gz
minesweeper-master.zip
Initial commitHEADmaster
Diffstat (limited to 'raylib/src/external/glfw/CMake/cmake_uninstall.cmake.in')
-rw-r--r--raylib/src/external/glfw/CMake/cmake_uninstall.cmake.in29
1 files changed, 29 insertions, 0 deletions
diff --git a/raylib/src/external/glfw/CMake/cmake_uninstall.cmake.in b/raylib/src/external/glfw/CMake/cmake_uninstall.cmake.in
new file mode 100644
index 0000000..5ecc476
--- /dev/null
+++ b/raylib/src/external/glfw/CMake/cmake_uninstall.cmake.in
@@ -0,0 +1,29 @@
1
2if (NOT EXISTS "@GLFW_BINARY_DIR@/install_manifest.txt")
3 message(FATAL_ERROR "Cannot find install manifest: \"@GLFW_BINARY_DIR@/install_manifest.txt\"")
4endif()
5
6file(READ "@GLFW_BINARY_DIR@/install_manifest.txt" files)
7string(REGEX REPLACE "\n" ";" files "${files}")
8
9foreach (file ${files})
10 message(STATUS "Uninstalling \"$ENV{DESTDIR}${file}\"")
11 if (EXISTS "$ENV{DESTDIR}${file}")
12 exec_program("@CMAKE_COMMAND@" ARGS "-E remove \"$ENV{DESTDIR}${file}\""
13 OUTPUT_VARIABLE rm_out
14 RETURN_VALUE rm_retval)
15 if (NOT "${rm_retval}" STREQUAL 0)
16 MESSAGE(FATAL_ERROR "Problem when removing \"$ENV{DESTDIR}${file}\"")
17 endif()
18 elseif (IS_SYMLINK "$ENV{DESTDIR}${file}")
19 EXEC_PROGRAM("@CMAKE_COMMAND@" ARGS "-E remove \"$ENV{DESTDIR}${file}\""
20 OUTPUT_VARIABLE rm_out
21 RETURN_VALUE rm_retval)
22 if (NOT "${rm_retval}" STREQUAL 0)
23 message(FATAL_ERROR "Problem when removing symlink \"$ENV{DESTDIR}${file}\"")
24 endif()
25 else()
26 message(STATUS "File \"$ENV{DESTDIR}${file}\" does not exist.")
27 endif()
28endforeach()
29

Generated with cgit - Back to sebastiano.tronto.net