summaryrefslogtreecommitdiffhomepage
path: root/src/external/glfw/CMake
diff options
context:
space:
mode:
authorRay <[email protected]>2019-12-01 13:30:02 +0100
committerRay <[email protected]>2019-12-01 13:30:02 +0100
commitea5cd42e6ccc3c0e520b98a2eb9ebc2c6ce62431 (patch)
tree7af763d3a94873bf1f39c356895324f571c22629 /src/external/glfw/CMake
parent3ffe34f9bb6452c021dfff0c2b04411542920c22 (diff)
downloadraylib-ea5cd42e6ccc3c0e520b98a2eb9ebc2c6ce62431.tar.gz
raylib-ea5cd42e6ccc3c0e520b98a2eb9ebc2c6ce62431.zip
Update GLFW to version 3.4
Diffstat (limited to 'src/external/glfw/CMake')
-rw-r--r--src/external/glfw/CMake/cmake_uninstall.cmake.in29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/external/glfw/CMake/cmake_uninstall.cmake.in b/src/external/glfw/CMake/cmake_uninstall.cmake.in
new file mode 100644
index 00000000..5ecc476d
--- /dev/null
+++ b/src/external/glfw/CMake/cmake_uninstall.cmake.in
@@ -0,0 +1,29 @@
+
+if (NOT EXISTS "@GLFW_BINARY_DIR@/install_manifest.txt")
+ message(FATAL_ERROR "Cannot find install manifest: \"@GLFW_BINARY_DIR@/install_manifest.txt\"")
+endif()
+
+file(READ "@GLFW_BINARY_DIR@/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("@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()
+ elseif (IS_SYMLINK "$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 symlink \"$ENV{DESTDIR}${file}\"")
+ endif()
+ else()
+ message(STATUS "File \"$ENV{DESTDIR}${file}\" does not exist.")
+ endif()
+endforeach()
+