Skip to content
Browse files

Added uninstall target

  • Loading branch information...
1 parent 67e8fce commit a65a79c20ae4d0844fa101415e132c9e4e6a58c9 @sahib committed Aug 30, 2011
Showing with 5 additions and 5 deletions.
  1. +5 −5 cmake_uninstall.cmake → cmake_uninstall.cmake.in
View
10 cmake_uninstall.cmake → cmake_uninstall.cmake.in
@@ -1,16 +1,16 @@
cmake_policy(SET CMP0007 OLD)
-if (NOT EXISTS "/home/chris/glyr_doc/glyr/install_manifest.txt")
- message(FATAL_ERROR "Cannot find install manifest: \"/home/chris/glyr_doc/glyr/install_manifest.txt\"")
-endif(NOT EXISTS "/home/chris/glyr_doc/glyr/install_manifest.txt")
+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 "/home/chris/glyr_doc/glyr/install_manifest.txt" files)
+file(READ "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt" files)
string(REGEX REPLACE "\n" ";" files "${files}")
list(REVERSE files)
foreach (file ${files})
message(STATUS "Uninstalling \"$ENV{DESTDIR}${file}\"")
if (EXISTS "$ENV{DESTDIR}${file}")
execute_process(
- COMMAND /usr/bin/cmake -E remove "$ENV{DESTDIR}${file}"
+ COMMAND @CMAKE_COMMAND@ -E remove "$ENV{DESTDIR}${file}"
OUTPUT_VARIABLE rm_out
RESULT_VARIABLE rm_retval
)

0 comments on commit a65a79c

Please sign in to comment.
Something went wrong with that request. Please try again.