Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMakeLists.txt: boost_python.so requires libpython.*.so on FreeBSD #12763

Merged
merged 1 commit into from Jan 5, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 6 additions & 1 deletion CMakeLists.txt
Expand Up @@ -477,7 +477,12 @@ find_package(Boost 1.61 COMPONENTS ${BOOST_COMPONENTS} REQUIRED)
include_directories(SYSTEM ${Boost_INCLUDE_DIRS})
include_directories(SYSTEM ${PROJECT_BINARY_DIR}/include)

if (NOT WITH_SYSTEM_BOOST)
if (WITH_SYSTEM_BOOST)
if(FREEBSD)
# if boost_python is used then also link with libpython*
LIST(APPEND Boost_LIBRARIES ${PYTHON_LIBRARIES})
endif()
else()
LIST(APPEND Boost_LIBRARIES "-lz")
endif()

Expand Down