<div dir="ltr"><div><div><div><div><div><div>Hi <span>RenĂ©,<br><br></span></div><span>Finally I found the reason why we are getting different visibility settings for tests. <span>Could you kindly verify if that works on OS X? For whatever reason I
 can't see the warnings using clang 3.8 on my box... Just add one line in debuggers/common/CMakeLists.txt brfore line 36:<br><br>cmake_policy(SET CMP0063 OLD)<br>add_library(kdevdebuggercommon STATIC ${debuggercommon_SRCS})</span><br><br>It's about the cmake policy CMP0063: whether to ignore the visibility properties for static libraries, object libraries, and executables without exports.<br><br></span></div><span>The whole kdevelop project sets CMP0063 to new and honors the visibility properties for all target types. That's the case when target kdevdebuggercommon is added (visibility set to hidden).<br><br></span></div><span>Target test_gdb is added through ecm_add_test which is defined with CMP0063 unset (functions capture the policy settings when it's defined). Thus visibility properties for test_gdb is ignored and it's built with default(public) visibility.<br><br></span></div><span>Therefore setting CMP0063 policy to OLD before create target should solve the issue, <span>since kdevdebuggercommon is just a simple internal library</span>.<br><br></span></div><span>Cheers,<br></span></div><span>Aetf<br></span><div><div><span><br><br></span><div><div><span><br></span></div></div></div></div></div>