Skip to content
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

CMakeLists.txt work around zlib/CMakeLists.txt bug #1415

Merged

Conversation

wantehchang
Copy link
Collaborator

@wantehchang wantehchang commented May 25, 2023

CMakeLists.txt work around zlib/CMakeLists.txt bug

Put an include_directories() call with the source directory of ext/zlib
before add_subdirectory(ext/zlib) to work around a zlib/CMakeLists.txt
bug fixed by madler/zlib#818.

The parent project's include directories at the time of an
add_subdirectory() call are used by the child project, so the order of
include_directories() and add_subdirectory() is important.

Put an include_directories() call with the source directory of ext/zlib
before add_subdirectory(ext/zlib) to work around a zlib/CMakeLists.txt
bug fixed by madler/zlib#818.

The parent project's include directories at the time of an
add_subdirectory() call are used by the child project, so the order of
include_directories() and add_subdirectory() is important.
@wantehchang wantehchang force-pushed the work-around-zlib-CMakeLists-txt-bug branch from 130113b to 634267e Compare May 25, 2023 21:01
@wantehchang
Copy link
Collaborator Author

Thanks for the review. I forced-pushed a new version of the commit, which has the same idea as the version that Joe and Vignesh reviewed. I made the workaround as small as possible. I also explained why the two include_directories() calls are needed by add_subdirectory(ext/libpng).

@wantehchang wantehchang merged commit 51395fb into AOMediaCodec:main May 25, 2023
@wantehchang wantehchang deleted the work-around-zlib-CMakeLists-txt-bug branch May 25, 2023 22:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants