$NetBSD: patch-plugins_debuggercommon_CMakeLists.txt,v 1.1 2025/08/24 15:08:17 wiz Exp $ Fix build with cmake 4. --- plugins/debuggercommon/CMakeLists.txt.orig 2025-08-24 15:03:21.441872413 +0000 +++ plugins/debuggercommon/CMakeLists.txt @@ -51,17 +51,6 @@ ki18n_wrap_ui(debuggercommon_SRCS registers/registersview.ui ) -# Use old behavior (ignore the visibility properties for static libraries, object -# libraries, and executables without exports) on target kdevdebuggercommon (so the -# default public visibility is used). -# kdevdebuggercommon is used by target test_gdb which is added by ecm_add_test, -# which doesn't set CMP0063 so old behavior is used. -# If kdevdebuggercommon honors visibility properties (set to hidden), it will cause -# linker warnings about direct access to global weak symbol when link against test_gdb -if(POLICY CMP0063) - cmake_policy(SET CMP0063 OLD) -endif() - add_library(kdevdebuggercommon STATIC ${debuggercommon_SRCS}) target_link_libraries(kdevdebuggercommon PUBLIC