[libxml2/2.10: 8/11] cmake: Disable version script on macOS




commit 1672e6de4cb55cbc1ed07921ecb011af1e69b5e7
Author: Nick Wellnhofer <wellnhofer aevum de>
Date:   Tue Aug 23 20:07:39 2022 +0200

    cmake: Disable version script on macOS
    
    Fixes #400

 CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/CMakeLists.txt b/CMakeLists.txt
index e3d7c935..730aec72 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -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()


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]