diff options
| author | jsmall-nvidia <jsmall@nvidia.com> | 2019-03-15 17:26:27 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-03-15 17:26:27 -0400 |
| commit | 1bc99cf725e1fcaf542a61fc786be18e18173003 (patch) | |
| tree | 6bdf5754d210ded6b578bb9919f99e4d3a958207 /external/vulkan/cmake/cmake_uninstall.cmake.in | |
| parent | c8e36bd128a29654b2ec145038da9e132330581b (diff) | |
Upgraded vulkan headers to v1.1.103 (#909)
https://github.com/KhronosGroup/Vulkan-Headers
Diffstat (limited to 'external/vulkan/cmake/cmake_uninstall.cmake.in')
| -rw-r--r-- | external/vulkan/cmake/cmake_uninstall.cmake.in | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/external/vulkan/cmake/cmake_uninstall.cmake.in b/external/vulkan/cmake/cmake_uninstall.cmake.in new file mode 100644 index 000000000..2037e3653 --- /dev/null +++ b/external/vulkan/cmake/cmake_uninstall.cmake.in @@ -0,0 +1,21 @@ +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(NOT EXISTS "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt") + +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(IS_SYMLINK "$ENV{DESTDIR}${file}" OR 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(NOT "${rm_retval}" STREQUAL 0) + else(IS_SYMLINK "$ENV{DESTDIR}${file}" OR EXISTS "$ENV{DESTDIR}${file}") + message(STATUS "File $ENV{DESTDIR}${file} does not exist.") + endif(IS_SYMLINK "$ENV{DESTDIR}${file}" OR EXISTS "$ENV{DESTDIR}${file}") +endforeach(file) |
