Skip to content

Commit

Permalink
Fix boost-python 2/3 version clashes on some (newer) systems
Browse files Browse the repository at this point in the history
  • Loading branch information
scotty007 committed Jul 3, 2020
1 parent 753609c commit 0480614
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ endif()
if(${PLATFORM_MACOSX})
set(BOOST_ROOT "$ENV{AVG_PATH}")
endif()
set(Boost_PYTHON_VERSION "2.7")
find_package(Boost 1.46 REQUIRED system thread python)
find_package(PkgConfig REQUIRED)
if(${PLATFORM_MACOSX})
Expand Down
2 changes: 1 addition & 1 deletion src/base/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ target_include_directories(base
target_link_libraries(base
PUBLIC tess ${Boost_LIBRARIES} ${CMAKE_DL_LIBS} ${LIBXML2_LDFLAGS})
if(${PLATFORM_LINUX})
# for some reason a dependency to boost-python is added on Debian 9/10 (breaks linking w/o python libs)
# for some reason a dependency to boost-python is added on Debian 9/10 and Arch Linux (breaks linking w/o python libs)
target_link_libraries(base PUBLIC ${PYTHON_LIBRARIES})
endif()
if (RT_LIBRARY)
Expand Down

0 comments on commit 0480614

Please sign in to comment.