You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/media-gfx/exiv2/files/exiv2-0.25-fvisibility-hidd...

20 lines
700 B

Index: CMakeLists.txt
===================================================================
--- a/xmpsdk/CMakeLists.txt (revision 3974)
+++ b/xmpsdk/CMakeLists.txt (revision 3975)
@@ -20,6 +20,14 @@
ENDIF(NOT MSVC AND NOT CYGWIN AND NOT MSYS)
ENDFOREACH()
+if(NOT MSVC)
+ # http://stackoverflow.com/questions/10046114/in-cmake-how-can-i-test-if-the-compiler-is-clang
+ if ( NOT "${CMAKE_CXX_COMPILER_ID}" MATCHES "AppleClang")
+ # 1123 - hide xmpsdk symbols
+ add_definitions( -fvisibility=hidden -fvisibility-inlines-hidden )
+ endif()
+endif()
+
IF( EXIV2_ENABLE_XMP AND EXIV2_ENABLE_LIBXMP )
ADD_LIBRARY( xmp STATIC ${XMPSRC} )
GET_TARGET_PROPERTY( XMPLIB xmp LOCATION )