Closed z-pc closed 2 years ago
Hi,
You can try to build deps (leptonica) as .so
and this won't touch your jpeg.
Of course, .so
brings another burden.
set(SW_BUILD_SHARED_LIBS 1)
You can try to add a prefix to your jpeg symbols somehow, then projects will link ok. There were some plans of adding package prefixes through sw itself, but it's not implemented yet.
Another solution I see is to package YOUR jpeg into sw and include as dependency. But the issue with renaming symbols is still here.
Also note that cmake integration is buggy currently. Sometimes it brings wrong config files (debug instead of release or similar).
Temporarily, I separate them into parts to avoid conflicts, create an interface for ExternProject as shared libs project.
Thanks for supporting.
Hi Egor, My project name is "MyProject", and third-ty project is "ExternProject". In "MyProject",
In "ExternProject",
ExternProject include directly source files of JPEG because JPEG_found = false ,but JPEG linked to MyProject through leptonica, in my local, it's make a conflict about already defined symbol:
How can I avoid a conflict or make org.sw.demo.jpeg available with find_package() Thanks