diff options
author | sanine <sanine.not@pm.me> | 2022-10-01 20:59:36 -0500 |
---|---|---|
committer | sanine <sanine.not@pm.me> | 2022-10-01 20:59:36 -0500 |
commit | c5fc66ee58f2c60f2d226868bb1cf5b91badaf53 (patch) | |
tree | 277dd280daf10bf77013236b8edfa5f88708c7e0 /libs/ode-0.16.1/cmake | |
parent | 1cf9cc3408af7008451f9133fb95af66a9697d15 (diff) |
add ode
Diffstat (limited to 'libs/ode-0.16.1/cmake')
-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() |