1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2026-01-26 21:41:34 +03:00

cmake: Disable version script on macOS

Fixes #400
This commit is contained in:
Nick Wellnhofer
2022-08-23 20:07:39 +02:00
parent e519c6e1c6
commit 484efeb607

View File

@@ -367,7 +367,7 @@ if(NOT BUILD_SHARED_LIBS)
set(XML_CFLAGS "-DLIBXML_STATIC")
endif()
if(BUILD_SHARED_LIBS AND UNIX)
if(BUILD_SHARED_LIBS AND UNIX AND NOT APPLE)
if(CMAKE_C_COMPILER_ID MATCHES "Clang" OR CMAKE_C_COMPILER_ID STREQUAL "GNU")
target_link_options(LibXml2 PRIVATE "-Wl,--version-script=${CMAKE_CURRENT_SOURCE_DIR}/libxml2.syms")
endif()