diff options
Diffstat (limited to 'libs/ode-0.16.1/cmake/cmake_uninstall.cmake.in')
-rw-r--r-- | libs/ode-0.16.1/cmake/cmake_uninstall.cmake.in | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/libs/ode-0.16.1/cmake/cmake_uninstall.cmake.in b/libs/ode-0.16.1/cmake/cmake_uninstall.cmake.in new file mode 100644 index 0000000..6aff17a --- /dev/null +++ b/libs/ode-0.16.1/cmake/cmake_uninstall.cmake.in @@ -0,0 +1,17 @@ +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: ${FILE}") + if(EXISTS "${FILE}") + file(REMOVE ${FILE}) + elseif(IS_SYMLINK "${FILE}") + file(REMOVE ${FILE}) + else() + message(STATUS "File \"${FILE}\" does not exist.") + endif() +endforeach() |