diff options
author | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2020-06-24 18:19:15 +0200 |
---|---|---|
committer | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2020-06-25 10:45:34 +0200 |
commit | 6d376ea5f409dcef54099b796dc5bc835fa51b7d (patch) | |
tree | e874ba5689b8a296a9f785585d5f1d883a568ff2 /src/openglwidgets | |
parent | a418fd5cbbf2d121c93d27194c02eb36aa4ac97e (diff) |
cmake: Apply symbol visibility settings to Objective-C/C++ sources
Otherwise the Objective-C++ sources will be built with the default
compiler visibility (visible), and then linked with moc-generated
C++ sources that have the Qt overridden hidden visibility, resulting
in linker warnings such as:
ld: warning: direct access in function 'X' from file 'moc_foo.cpp.o'
to global weak symbol 'Y' from file 'bar.mm.o' means the weak symbol
cannot be overridden at runtime. This was likely caused by different
translation units being compiled with different visibility setting
Change-Id: I22e15e7e181a74de8c0a22c73d06e600e582d7fd
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'src/openglwidgets')
0 files changed, 0 insertions, 0 deletions