-
Notifications
You must be signed in to change notification settings - Fork 637
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
Can't build with CMake nightly for Xcode #344
Comments
Adding some search keywords: macOS, Apple This is indeed a problem right now, I worked around this by using
Or by not using XCode generator. One of the too, or both, I don't remember. |
* libpng does not support the new macOS build system yet (see pnggroup/libpng#344 (comment))
I ran into the same issue recently when updating to libpng 1.6.36. Unfortunately, setting |
My opinion is that if eliding a search for awk allows successful Xcode project generation, then the cmake script can be changed to not search for awk when generating Xcode files. I would have submitted a PR, but I did not have time to search for the reason awk is a requirement in the first place, and whether it is somehow in some circumstances required for Xcode project file generation. I would consider fixing the Cmake script a viable solution, if indeed not searching for awk is a fix. |
The "multiple targets" warning is correct, the targets that depend on the custom command must also depend on the custom target. From CMake documentation:
This is a bug relevant to all generators, even though the new XCode is currently the only one that turns it into an error. I've sent a fix for this in #403. |
Thanks so much! Any possibility of tagging a point release? Our build automation prefers to fetch against point release tags. |
I have a few more contributions to integrate, and I'd like to give it an extra week for extra testing. If all goes well, I should be able to publish a point release by next weekend. |
@meshula it's done. Enjoy our latest and greatest libpng-1.6.38. |
Sweet!! |
CMake nightly removes support for the old Xcode build system, and the CMake script for libpng now fails as shown below.
A hacky workaround is to comment out the line that searches for awk.
#find_program(AWK NAMES gawk awk)
The text was updated successfully, but these errors were encountered: