[libxml2] cmake: Disable version script on macOS
- From: Nick Wellnhofer <nwellnhof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libxml2] cmake: Disable version script on macOS
- Date: Tue, 23 Aug 2022 18:16:51 +0000 (UTC)
commit 484efeb6078f016abe2a1ddec7cd3f450195516f
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]