[Ctk-developers] GCC visibility flags?

Daniel Blezek daniel.blezek at gmail.com
Tue Jul 6 22:12:26 EDT 2010


Hi all,

  Can someone explain this code from the top level CTK CMakeLists.txt file?

#-----------------------------------------------------------------------------
# Set symbol visibility Flags
#
IF("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
  SET(VISIBILITY_CXX_FLAGS "-fvisibility=hidden -fvisibility-inlines-hidden")
ENDIF()


This causes all sorts of linker warnings because Log4Qt doesn't include the flag and CTK does.

Is this strictly necessary?  If so, can it be applied to the Externals as well?

Thanks,
-dan

--
Daniel Blezek
daniel.blezek at gmail.com






More information about the Ctk-developers mailing list