parent
							
								
									2cedd8f059
								
							
						
					
					
						commit
						2d3f25ce99
					
				
				 1 changed files with 26 additions and 28 deletions
			
			
		@ -1,31 +1,29 @@ | 
				
			|||||||
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) | 
					if (NOT EXISTS "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt") | 
				
			||||||
STRING(REGEX REPLACE "\n" ";" files "${files}") | 
					  message(FATAL_ERROR "Cannot find install manifest: \"@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt\"") | 
				
			||||||
FOREACH(file ${files}) | 
					endif() | 
				
			||||||
  MESSAGE(STATUS "Uninstalling \"$ENV{DESTDIR}${file}\"") | 
					
 | 
				
			||||||
  IF(EXISTS "$ENV{DESTDIR}${file}") | 
					file(READ "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt" files) | 
				
			||||||
    EXEC_PROGRAM( | 
					string(REGEX REPLACE "\n" ";" files "${files}") | 
				
			||||||
      "@CMAKE_COMMAND@" ARGS "-E remove \"$ENV{DESTDIR}${file}\"" | 
					
 | 
				
			||||||
 | 
					foreach (file ${files}) | 
				
			||||||
 | 
					  message(STATUS "Uninstalling \"$ENV{DESTDIR}${file}\"") | 
				
			||||||
 | 
					  if (EXISTS "$ENV{DESTDIR}${file}") | 
				
			||||||
 | 
					    exec_program("@CMAKE_COMMAND@" ARGS "-E remove \"$ENV{DESTDIR}${file}\"" | 
				
			||||||
                 OUTPUT_VARIABLE rm_out | 
					                 OUTPUT_VARIABLE rm_out | 
				
			||||||
      RETURN_VALUE rm_retval | 
					                 RETURN_VALUE rm_retval) | 
				
			||||||
      ) | 
					    if (NOT "${rm_retval}" STREQUAL 0) | 
				
			||||||
    IF(NOT "${rm_retval}" STREQUAL 0) | 
					 | 
				
			||||||
      MESSAGE(FATAL_ERROR "Problem when removing \"$ENV{DESTDIR}${file}\"") | 
					      MESSAGE(FATAL_ERROR "Problem when removing \"$ENV{DESTDIR}${file}\"") | 
				
			||||||
    ENDIF(NOT "${rm_retval}" STREQUAL 0) | 
					    endif() | 
				
			||||||
  ELSEIF(IS_SYMLINK "$ENV{DESTDIR}${file}") | 
					  elseif (IS_SYMLINK "$ENV{DESTDIR}${file}") | 
				
			||||||
    EXEC_PROGRAM( | 
					    EXEC_PROGRAM("@CMAKE_COMMAND@" ARGS "-E remove \"$ENV{DESTDIR}${file}\"" | 
				
			||||||
      "@CMAKE_COMMAND@" ARGS "-E remove \"$ENV{DESTDIR}${file}\"" | 
					 | 
				
			||||||
                 OUTPUT_VARIABLE rm_out | 
					                 OUTPUT_VARIABLE rm_out | 
				
			||||||
      RETURN_VALUE rm_retval | 
					                 RETURN_VALUE rm_retval) | 
				
			||||||
      ) | 
					    if (NOT "${rm_retval}" STREQUAL 0) | 
				
			||||||
    IF(NOT "${rm_retval}" STREQUAL 0) | 
					      message(FATAL_ERROR "Problem when removing symlink \"$ENV{DESTDIR}${file}\"") | 
				
			||||||
      MESSAGE(FATAL_ERROR "Problem when removing symlink \"$ENV{DESTDIR}${file}\"") | 
					    endif() | 
				
			||||||
    ENDIF(NOT "${rm_retval}" STREQUAL 0) | 
					  else() | 
				
			||||||
  ELSE(EXISTS "$ENV{DESTDIR}${file}") | 
					    message(STATUS "File \"$ENV{DESTDIR}${file}\" does not exist.") | 
				
			||||||
    MESSAGE(STATUS "File \"$ENV{DESTDIR}${file}\" does not exist.") | 
					  endif() | 
				
			||||||
  ENDIF(EXISTS "$ENV{DESTDIR}${file}") | 
					endforeach() | 
				
			||||||
ENDFOREACH(file) | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
					Loading…
					
					
				
		Reference in New Issue