From 766db9e0420954798d8d24ef4dc55fa250270921 Mon Sep 17 00:00:00 2001 From: Yunze Xu Date: Fri, 23 Jun 2023 10:04:52 +0800 Subject: [PATCH] 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}")