Do not use certain compiler flags on windows
This commit is contained in:
parent
68d2c49fc5
commit
c1c6c42834
@ -56,7 +56,7 @@ endif()
|
|||||||
target_compile_definitions(xmp_object PRIVATE XML_STATIC)
|
target_compile_definitions(xmp_object PRIVATE XML_STATIC)
|
||||||
|
|
||||||
# http://stackoverflow.com/questions/10046114/in-cmake-how-can-i-test-if-the-compiler-is-clang
|
# http://stackoverflow.com/questions/10046114/in-cmake-how-can-i-test-if-the-compiler-is-clang
|
||||||
if ( NOT "${CMAKE_CXX_COMPILER_ID}" MATCHES "AppleClang")
|
if ( "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
|
||||||
# 1123 - hide xmpsdk symbols
|
# 1123 - hide xmpsdk symbols
|
||||||
set_property(SOURCE ${XMPSRC} PROPERTY
|
set_property(SOURCE ${XMPSRC} PROPERTY
|
||||||
COMPILE_FLAGS "-fvisibility=hidden -fvisibility-inlines-hidden")
|
COMPILE_FLAGS "-fvisibility=hidden -fvisibility-inlines-hidden")
|
||||||
@ -71,7 +71,7 @@ if( EXIV2_ENABLE_LIBXMP )
|
|||||||
target_compile_definitions(xmp PUBLIC XML_STATIC)
|
target_compile_definitions(xmp PUBLIC XML_STATIC)
|
||||||
|
|
||||||
if (BUILD_SHARED_LIBS)
|
if (BUILD_SHARED_LIBS)
|
||||||
set_property(TARGET xmp_object PROPERTY COMPILE_FLAGS "-fPIC")
|
set_property(TARGET xmp_object PROPERTY POSITION_INDEPENDENT_CODE ON)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# 1119 Install libxmp.a for use by third party applications (Thanks, Emmanuel)
|
# 1119 Install libxmp.a for use by third party applications (Thanks, Emmanuel)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user