Skip to content

Commit

Permalink
Propagate libarchive to tess users.
Browse files Browse the repository at this point in the history
  • Loading branch information
egorpugin committed Mar 10, 2019
1 parent 37b0c36 commit b0f61df
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,10 @@ if (CPPAN_BUILD)
file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/TesseractTargets.cmake "include(${CMAKE_CURRENT_BINARY_DIR}/cppan.cmake)\n")
export(TARGETS libtesseract APPEND FILE ${CMAKE_CURRENT_BINARY_DIR}/TesseractTargets.cmake)
else()
target_link_libraries (libtesseract ${Leptonica_LIBRARIES} ${LibArchive_LIBRARIES})
target_link_libraries (libtesseract PUBLIC
${Leptonica_LIBRARIES}
${LibArchive_LIBRARIES}
)
export(TARGETS libtesseract FILE ${CMAKE_CURRENT_BINARY_DIR}/TesseractTargets.cmake)
endif()

Expand Down

0 comments on commit b0f61df

Please sign in to comment.