diff options
| author | Ahmad Fatoum <[email protected]> | 2018-05-10 22:40:41 +0200 |
|---|---|---|
| committer | Ahmad Fatoum <[email protected]> | 2018-05-10 23:07:26 +0200 |
| commit | 0df501be91a09af6b4b06bf44df86d8d06cdcada (patch) | |
| tree | 9f9d0a7222b562952d0551bc17b6ca753b5f12ec /src/external/glfw/cmake_uninstall.cmake.in | |
| parent | f11fe801809f5697c96010e0f08e26dc87c85b1b (diff) | |
| download | raylib-0df501be91a09af6b4b06bf44df86d8d06cdcada.tar.gz raylib-0df501be91a09af6b4b06bf44df86d8d06cdcada.zip | |
Add GLFW source tree to src/external
We need the CMake stuff for wayland configuration.
Otherwise, we would have to replicate that ourselves.
This is the full 7ef34eb06de54dd9186d3d21a401b2ef819b59e7 tree except
for tests/ examples/ and docs/
Diffstat (limited to 'src/external/glfw/cmake_uninstall.cmake.in')
| -rw-r--r-- | src/external/glfw/cmake_uninstall.cmake.in | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/external/glfw/cmake_uninstall.cmake.in b/src/external/glfw/cmake_uninstall.cmake.in new file mode 100644 index 00000000..4ea57b1c --- /dev/null +++ b/src/external/glfw/cmake_uninstall.cmake.in @@ -0,0 +1,29 @@ + +if (NOT EXISTS "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt") + message(FATAL_ERROR "Cannot find install manifest: \"@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt\"") +endif() + +file(READ "@CMAKE_CURRENT_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() + |
