Skip to content

Commit b0f61df

Browse files
committed
Propagate libarchive to tess users.
1 parent 37b0c36 commit b0f61df

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

CMakeLists.txt

+4-1
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,10 @@ if (CPPAN_BUILD)
361361
file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/TesseractTargets.cmake "include(${CMAKE_CURRENT_BINARY_DIR}/cppan.cmake)\n")
362362
export(TARGETS libtesseract APPEND FILE ${CMAKE_CURRENT_BINARY_DIR}/TesseractTargets.cmake)
363363
else()
364-
target_link_libraries (libtesseract ${Leptonica_LIBRARIES} ${LibArchive_LIBRARIES})
364+
target_link_libraries (libtesseract PUBLIC
365+
${Leptonica_LIBRARIES}
366+
${LibArchive_LIBRARIES}
367+
)
365368
export(TARGETS libtesseract FILE ${CMAKE_CURRENT_BINARY_DIR}/TesseractTargets.cmake)
366369
endif()
367370

0 commit comments

Comments
 (0)