Fix install: find correct freetype libs #3976
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Caveat: I really don't have a good grasp of how the build system works, so this PR should be looked over with some suspicion.
I have freetype installed through Canopy, and I didn't want to add yet-another install of it. Currently, the freetype search looks only in a few predefined directories. (In fact, the pre-install check looks in the barest of defaults, even though
add_flags
adds some better default search directories. Even when adding a call toadd_flags
, the directory lists don't seem to be used; only the result of thefreetype-config
call seems to matter. This is why I say I don't have a grasp on the build system.)There's not anything Canopy-specific here, per se: This just uses
freetype-config
to find include paths (and Canopy installs into a virtual environment, so hard-coded default paths won't work).