Skip to content

Commit

Permalink
fix: 修CMakeLists.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
liufang-robot committed Jan 14, 2023
1 parent 7b7ce4b commit c07ec87
Showing 1 changed file with 2 additions and 20 deletions.
22 changes: 2 additions & 20 deletions sdk/python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,7 @@ target_include_directories(l_master
)
set_property(TARGET l_master PROPERTY SWIG_USE_TARGET_INCLUDE_DIRECTORIES ON)

# note: macOS is APPLE and also UNIX !
if(APPLE)
set_target_properties(l_master PROPERTIES
SUFFIX ".so"
INSTALL_RPATH "@loader_path;@loader_path/../../${PYTHON_PROJECT}/.libs"
)
set_property(TARGET l_master APPEND PROPERTY
LINK_FLAGS "-flat_namespace -undefined suppress"
)
elseif(UNIX)
if(UNIX)
set_target_properties(l_master PROPERTIES
INSTALL_RPATH "$ORIGIN:$ORIGIN/../${PYTHON_PROJECT}/.libs"
)
Expand Down Expand Up @@ -58,16 +49,7 @@ target_include_directories(zeroconf
)
set_property(TARGET zeroconf PROPERTY SWIG_USE_TARGET_INCLUDE_DIRECTORIES ON)

# note: macOS is APPLE and also UNIX !
if(APPLE)
set_target_properties(zeroconf PROPERTIES
SUFFIX ".so"
INSTALL_RPATH "@loader_path;@loader_path/../../${PYTHON_PROJECT}/.libs"
)
set_property(TARGET zeroconf APPEND PROPERTY
LINK_FLAGS "-flat_namespace -undefined suppress"
)
elseif(UNIX)
if(UNIX)
set_target_properties(zeroconf PROPERTIES
INSTALL_RPATH "$ORIGIN:$ORIGIN/../${PYTHON_PROJECT}/.libs"
)
Expand Down

0 comments on commit c07ec87

Please sign in to comment.