Skip to content

Add an option to use an external version of FreeType.#230

Open
Count-MHM wants to merge 1 commit intoChlumsky:masterfrom
Count-MHM:master
Open

Add an option to use an external version of FreeType.#230
Count-MHM wants to merge 1 commit intoChlumsky:masterfrom
Count-MHM:master

Conversation

@Count-MHM
Copy link
Copy Markdown

When using FreeType as a submodule (or including FreeType’s source code by any other means), the current CMake configuration generates an error if FreeType is not installed, even if it’s already available as a target.

This PR adds an option, MSDFGEN_FREETYPE_EXTERNAL, which links against the locally available FreeType instead of locating it via find_package.

The existing implementation if(NOT TARGET Freetype::Freetype) doesn’t apply here, because FreeType’s target name when directly included is FreeType.

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.

1 participant