From 5cfd8bca953e7cd87bd9253609c63f86e6c2009b Mon Sep 17 00:00:00 2001 From: Peter Wu Date: Mon, 16 Dec 2019 20:01:13 +0100 Subject: CMake: fix CMake 3.16 warning about CMP0071 Prevent a file from being processed by moc/uic as it is not needed. This addresses a new CMake warning "Policy CMP0071 is not set: Let AUTOMOC and AUTOUIC process GENERATED files." Change-Id: I8ed458099cdf29472dad29168786cf16b95595fa Reviewed-on: https://code.wireshark.org/review/35468 Petri-Dish: Peter Wu Tested-by: Petri Dish Buildbot Reviewed-by: Gerald Combs --- ui/qt/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ui/qt/CMakeLists.txt b/ui/qt/CMakeLists.txt index b209c0a9a3..09335acbfa 100644 --- a/ui/qt/CMakeLists.txt +++ b/ui/qt/CMakeLists.txt @@ -638,6 +638,12 @@ set_source_files_properties( COMPILE_FLAGS "${WERROR_COMMON_FLAGS}" ) +set_source_files_properties( + wireshark-tap-register.c + PROPERTIES + SKIP_AUTOGEN ON +) + add_definitions(${QT_DEFINITIONS}) register_tap_files(wireshark-tap-register.c -- cgit v1.2.3