This is an automated email from the ASF dual-hosted git repository.

baodi pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/pulsar-client-python.git


The following commit(s) were added to refs/heads/main by this push:
     new 766db9e  Fix link failure on macOS (#133)
766db9e is described below

commit 766db9e0420954798d8d24ef4dc55fa250270921
Author: Yunze Xu <[email protected]>
AuthorDate: Fri Jun 23 10:04:52 2023 +0800

    Fix link failure on macOS (#133)
    
    ### Motivation
    
    We need to link the Python shared library on non-Windows systems as
    well. Otherwise, some link errors might happen.
---
 CMakeLists.txt | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 98c1f62..493bfb0 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -80,9 +80,7 @@ endif()
 set(PYTHON_WRAPPER_LIBS
     ${PULSAR_LIBRARY}
 )
-if (MSVC)
-    set(PYTHON_WRAPPER_LIBS ${PYTHON_WRAPPER_LIBS} Python3::Module)
-endif ()
+set(PYTHON_WRAPPER_LIBS ${PYTHON_WRAPPER_LIBS} Python3::Module)
 
 message(STATUS "All libraries: ${PYTHON_WRAPPER_LIBS}")
 

Reply via email to