Turn on options to tell CMake to use -fvisibility=hidden by default (on applicable platforms). This has some optimization benefits, and more closely mirrors the Windows behavior of only exporting symbols marked for export, which can help catch errors doing so on non-Windows platforms. This requires CMake 2.8.12 to be effective. (Otherwise, the logic will simply have no effect.)
4.6 KiB
4.6 KiB