Skip to content

Commit

Permalink
Fix python/CMakeLists.txt (apache#2084)
Browse files Browse the repository at this point in the history
  • Loading branch information
hrsakai authored and merlimat committed Jul 5, 2018
1 parent 59fc8e2 commit c9d1066
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pulsar-client-cpp/python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ ADD_LIBRARY(_pulsar SHARED src/pulsar.cc src/producer.cc src/consumer.cc
SET(CMAKE_SHARED_LIBRARY_PREFIX )
SET(CMAKE_SHARED_LIBRARY_SUFFIX .so)

SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS_PYTHON}")

if (CMAKE_CXX_FLAGS_PYTHON)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS_PYTHON}")
endif()

if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
set(CMAKE_SHARED_LIBRARY_CREATE_CXX_FLAGS "${CMAKE_SHARED_LIBRARY_CREATE_CXX_FLAGS} -undefined dynamic_lookup")
Expand Down

0 comments on commit c9d1066

Please sign in to comment.