- Otherwise losts of unresolved errors will result.
Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
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()