2 # Wireshark - Network traffic analyzer
3 # By Gerald Combs <gerald@wireshark.org>
4 # Copyright 1998 Gerald Combs
6 # SPDX-License-Identifier: BSD-3-Clause
9 if(NOT EXISTS "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt")
10 message(FATAL_ERROR "Cannot find install manifest: @CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt")
11 endif(NOT EXISTS "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt")
13 file(READ "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt" files)
14 string(REGEX REPLACE "\n" ";" files "${files}")
15 foreach(file ${files})
16 message(STATUS "Uninstalling $ENV{DESTDIR}${file}")
17 if(IS_SYMLINK "$ENV{DESTDIR}${file}" OR EXISTS "$ENV{DESTDIR}${file}")
19 "@CMAKE_COMMAND@" ARGS "-E remove \"$ENV{DESTDIR}${file}\""
20 OUTPUT_VARIABLE rm_out
21 RETURN_VALUE rm_retval
23 if(NOT "${rm_retval}" STREQUAL 0)
24 message(FATAL_ERROR "Problem when removing $ENV{DESTDIR}${file}")
25 endif(NOT "${rm_retval}" STREQUAL 0)
26 else(IS_SYMLINK "$ENV{DESTDIR}${file}" OR EXISTS "$ENV{DESTDIR}${file}")
27 message(STATUS "File $ENV{DESTDIR}${file} does not exist.")
28 endif(IS_SYMLINK "$ENV{DESTDIR}${file}" OR EXISTS "$ENV{DESTDIR}${file}")
32 # Editor modelines - https://www.wireshark.org/tools/modelines.html
37 # indent-tabs-mode: nil
40 # vi: set shiftwidth=2 tabstop=2 noexpandtab:
41 # :indentSize=8:tabSize=8:noTabs=false: