Skip to content

Commit 3b8185c

Browse files
committed
Simplify build script on macOS
1 parent 8953330 commit 3b8185c

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ endif ()
4040
if (LINK_STATIC)
4141
find_library(PULSAR_LIBRARY NAMES pulsarwithdeps pulsarWithDeps.lib)
4242
add_definitions("-DPULSAR_STATIC")
43-
elseif (NOT PULSAR_LIBRARY)
43+
else ()
4444
find_library(PULSAR_LIBRARY NAMES pulsar libpulsar)
4545
endif()
4646
message(STATUS "PULSAR_LIBRARY: ${PULSAR_LIBRARY}")

pkg/mac/build-mac-wheels.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,10 +140,7 @@ cmake -B build \
140140
-DCMAKE_OSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET} \
141141
-DCMAKE_BUILD_TYPE=Release \
142142
-DCMAKE_PREFIX_PATH=$PREFIX \
143-
-DCMAKE_CXX_FLAGS=-I$PREFIX/include \
144143
-DLINK_STATIC=ON \
145-
-DPULSAR_LIBRARY=${ROOT_DIR}/lib/libpulsarwithdeps.a \
146-
-DPULSAR_INCLUDE=${ROOT_DIR}/include \
147144
-DPython3_ROOT_DIR=$PREFIX
148145
cmake --build build --config Release -j8
149146
cp -f build/lib_pulsar.so .

0 commit comments

Comments
 (0)