Skip to content

Commit

Permalink
Fix linking on Debian 9/10
Browse files Browse the repository at this point in the history
  • Loading branch information
scotty007 committed Jul 2, 2020
1 parent 89ff7df commit 753609c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/base/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ target_include_directories(base
PUBLIC SYSTEM ${Boost_INCLUDE_DIRS})
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)
target_link_libraries(base PUBLIC ${PYTHON_LIBRARIES})
endif()
if (RT_LIBRARY)
target_include_directories(base
PUBLIC SYSTEM ${RT_INCLUDE_DIR})
Expand Down

0 comments on commit 753609c

Please sign in to comment.