Skip to content

Add an option to use an external version of FreeType, and make install target optional#34

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

Add an option to use an external version of FreeType, and make install target optional#34
Count-MHM wants to merge 1 commit intosammycage:masterfrom
Count-MHM:master

Conversation

@Count-MHM
Copy link

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, PLUTOSVG_EXTERNAL_FREETYPE, which links against the locally available FreeType instead of locating it via find_package.

It also introduces an option, PLUTOSVG_INSTALL, which defaults to ON if this is the top-level CMake project and OFF otherwise. Users can override it to disable the install target and make it optional.

Note: The install target makes using FreeType directly impossible.

@sammycage
Copy link
Owner

Interesting

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.

2 participants