Skip to content
Snippets Groups Projects
Commit e0b8b554d406 authored by Nick Wellnhofer's avatar Nick Wellnhofer
Browse files

cmake: Disable version script on macOS

Fixes #400
parent be4007b99c4d
No related branches found
No related tags found
No related merge requests found
...@@ -367,7 +367,7 @@ ...@@ -367,7 +367,7 @@
set(XML_CFLAGS "-DLIBXML_STATIC") set(XML_CFLAGS "-DLIBXML_STATIC")
endif() 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") 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") target_link_options(LibXml2 PRIVATE "-Wl,--version-script=${CMAKE_CURRENT_SOURCE_DIR}/libxml2.syms")
endif() endif()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment