-
Notifications
You must be signed in to change notification settings - Fork 190
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for ExternalProject_Add() / libjpeg #550
Comments
I think probably not, as |
See this comment:
The right answer for you, @tehKaiN, is to figure out what changes you need to make to the CMakeLists.txt file to allow it's incorporation into your project and then maintain a patch. That's what patches are for in a Package Manager after all! :-) Basically, you'll fork the jpeg-turbo project, set CPM to your fork, and then fiddle with it until you get a good build. After that you create the patches and incorporate them using And when you do get this working with CPM, add a PR with the example! I recommend closing this issue. |
I went with https://github.com/csparker247/jpeg-cmake/ which skipped all those extra steps. I'd probably do what you suggest, but quite recently the decision was made to scrap jpeg format support in my project, so I don't need it anymore. Thanks for tips, though! |
Hi,
I tried incorporating https://github.com/libjpeg-turbo/libjpeg-turbo into my project with CPM, but failed miserably. I'd create that issue on their repository, but they're not really into changing state of their CMakeLists.txt, to the point that following:
CPMAddPackage( NAME JPG GIT_REPOSITORY https://github.com/libjpeg-turbo/libjpeg-turbo GIT_TAG 3.0.2 )
gives following custom-written error:
Also their BUILDING.md has same note and searching for issues relating to it gives
wontfix
vibes.Typically, I'd just ignore their unwillingness for cooperation and use other JPG library, like the
stb-jpeg
, but some other libraries I'm using can detectlibjpeg
and use it for extended features (e.g.libtiff
).So, is there support for
ExternalProject_Add()
planned? I know that I can call that CMake thingy directly, and that's probably what I'm going to do, but having CPM as unified interface for all the package kinds would be great!The text was updated successfully, but these errors were encountered: