-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
[libtheora] add unofficial cmake config, remove FindOGG.cmake #13783
[libtheora] add unofficial cmake config, remove FindOGG.cmake #13783
Conversation
4d11075
to
0f6714e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR!
ports/libtheora/CMakeLists.txt
Outdated
@@ -12,7 +12,7 @@ file(GLOB HEADERS | |||
) | |||
|
|||
include_directories("include") | |||
include_directories(${OGG_INCLUDE_DIR}) | |||
include_directories(${Ogg_INCLUDE_DIR}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
include_directories(${Ogg_INCLUDE_DIR}) |
This should be handled automatically by the Ogg::ogg
target.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, and yes, I realised that. I tried deleting it but for some reason it does not find the headers for some files that are compiled. I'm going to see if I can get to the root of this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adding a target_link_libraries against Ogg for the object libraries fixed it. I've just pushed another commit to this effect.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The targets may need have target_include_directories(
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, good point. Might as well fix that too.
Thanks @ras0219 @PhoebeHui for your comments. I think I've now done everything and done another series of tests to ensure it's all compiling as it should. Let me know if you still spot some issues. I'll try to get this cmake file included and maintained upstream. Not that theora still gets a lot of development, but it can't hurt trying, and it feels like the right thing to do. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks for your updates!
You're welcome. I've submitted the cmake work to upstream here: Whilst I was at it, I've also submitted the patch by @Mixaill (which fixes the debug build) to upstream: |
/azp run |
No pipelines are associated with this pull request. |
Thanks for the PR! |
What does your PR fix? This adds cmake config file for unofficial::theora targets, to use by other ports and consumers of vcpkg. It also removes the FindOGG.cmake since libogg in vcpkg already provides a config file. Tested on x64-linux, x64-windows, and x64-windows-static.
Which triplets are supported/not supported? Have you updated the CI baseline? No changes.
Does your PR follow the maintainer guide? Yes.