source: ogBrowser-Git/qtermwidget/cmake/cmake_uninstall.cmake.in

jenkins
Last change on this file was 64efc22, checked in by Vadim Troshchinskiy <vtroshchinskiy@…>, 19 months ago

Update qtermwidget to modern version

  • Property mode set to 100644
File size: 996 bytes
Line 
1IF(NOT EXISTS "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt")
2  MESSAGE(FATAL_ERROR "Cannot find install manifest: \"@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt\"")
3ENDIF(NOT EXISTS "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt")
4
5# this works on Linux, but not on mac.
6#FILE(READ "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt" files)
7#STRING(REGEX REPLACE "\n" ";" files "${files}")
8#FOREACH(file ${files})
9#  MESSAGE(STATUS "Uninstalling \"${file}\"")
10#  IF(NOT EXISTS "${file}")
11#    MESSAGE(FATAL_ERROR "File \"${file}\" does not exists.")
12#  ENDIF(NOT EXISTS "${file}")
13#  EXEC_PROGRAM("@CMAKE_COMMAND@" ARGS "-E remove \"${file}\""
14#    OUTPUT_VARIABLE rm_out
15#    RETURN_VARIABLE rm_retval)
16#  IF("${rm_retval}" GREATER 0)
17#    MESSAGE(FATAL_ERROR "Problem when removing \"${file}\"")
18#  ENDIF("${rm_retval}" GREATER 0)
19#ENDFOREACH(file)
20
21EXEC_PROGRAM("xargs rm < @CMAKE_BINARY_DIR@/install_manifest.txt"
22            OUTPUT_VARIABLE rm_out
23            RETURN_VARIABLE rm_ret)
Note: See TracBrowser for help on using the repository browser.