On Monday, February 19, 2024 at 4:49:07 AM UTC-5 [email protected]
wrote:
I solved the issue, thanks to the help and suggestions, and explanations, I
kindly received in StackOverFlow
In case someone has a similar issue in the future, the suggestion on
StackOverflow was to use CMake's INTERFACE_LINK_LIBRARIES property.
...
pkg_check_modules(tesseract REQUIRED IMPORTED_TARGET tesseract)
# pkg-config doesn't know about dependencies of static libraries, so add
these dependencies manually.
set_property(TARGET PkgConfig::tesseract APPEND PROPERTY
INTERFACE_LINK_LIBRARIES curl)
target_link_libraries(BasicExample PUBLIC
PkgConfig::tesseract # With that linkage CMake will automatically add
linkage with curl.
)
There's more explanation in the StackOverflow answer.
Tom
--
You received this message because you are subscribed to the Google Groups
"tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/tesseract-ocr/98aca687-90ae-4e57-a8c4-79356a26eac7n%40googlegroups.com.