tools/pidl/lib/Parse/Pidl/Wireshark/NDR.pm Struct param_info
[wireshark-sm.git] / cmake_uninstall.cmake.in
blobe1241ed54e33be5d38157ef0e7e6f21c699913e0
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}")
18                 exec_program(
19                     "@CMAKE_COMMAND@" ARGS "-E remove \"$ENV{DESTDIR}${file}\""
20                     OUTPUT_VARIABLE rm_out
21                     RETURN_VALUE rm_retval
22                 )
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}")
29 endforeach(file)
32 # Editor modelines  -  https://www.wireshark.org/tools/modelines.html
34 # Local variables:
35 # c-basic-offset: 2
36 # tab-width: 2
37 # indent-tabs-mode: nil
38 # End:
40 # vi: set shiftwidth=2 tabstop=2 noexpandtab:
41 # :indentSize=8:tabSize=8:noTabs=false: