Skip to content

Commit

Permalink
Simplify build script on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
BewareMyPower committed Jan 9, 2025
1 parent 8953330 commit 3b8185c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ endif ()
if (LINK_STATIC)
find_library(PULSAR_LIBRARY NAMES pulsarwithdeps pulsarWithDeps.lib)
add_definitions("-DPULSAR_STATIC")
elseif (NOT PULSAR_LIBRARY)
else ()
find_library(PULSAR_LIBRARY NAMES pulsar libpulsar)
endif()
message(STATUS "PULSAR_LIBRARY: ${PULSAR_LIBRARY}")
Expand Down
3 changes: 0 additions & 3 deletions pkg/mac/build-mac-wheels.sh
Original file line number Diff line number Diff line change
Expand Up @@ -140,10 +140,7 @@ cmake -B build \
-DCMAKE_OSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET} \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_PREFIX_PATH=$PREFIX \
-DCMAKE_CXX_FLAGS=-I$PREFIX/include \
-DLINK_STATIC=ON \
-DPULSAR_LIBRARY=${ROOT_DIR}/lib/libpulsarwithdeps.a \
-DPULSAR_INCLUDE=${ROOT_DIR}/include \
-DPython3_ROOT_DIR=$PREFIX
cmake --build build --config Release -j8
cp -f build/lib_pulsar.so .
Expand Down

0 comments on commit 3b8185c

Please sign in to comment.