File tree 1 file changed +18
-0
lines changed
1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change
1
+ IF (NOT EXISTS "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt" )
2
+ MESSAGE (FATAL_ERROR "Cannot find install manifest: \" @CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt\" " )
3
+ ENDIF (NOT EXISTS "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt" )
4
+
5
+ FILE (READ "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt" files )
6
+ STRING (REGEX REPLACE "\n " ";" files "${files} " )
7
+ FOREACH (file ${files} )
8
+ MESSAGE (STATUS "Uninstalling \" ${file} \" " )
9
+ IF (NOT EXISTS "${file} " )
10
+ MESSAGE (FATAL_ERROR "File \" ${file} \" does not exists." )
11
+ ENDIF (NOT EXISTS "${file} " )
12
+ EXEC_PROGRAM ("@CMAKE_COMMAND@" ARGS "-E remove \" ${file} \" "
13
+ OUTPUT_VARIABLE rm_out
14
+ RETURN_VARIABLE rm_retval)
15
+ IF ("${rm_retval} " GREATER 0)
16
+ MESSAGE (FATAL_ERROR "Problem when removing \" ${file} \" " )
17
+ ENDIF ("${rm_retval} " GREATER 0)
18
+ ENDFOREACH (file)
You can’t perform that action at this time.
0 commit comments