Skip to content

Allow CMake to find freetype/freetype.h and ft2build.h#4

Open
jonahjnewton wants to merge 1 commit intoOpenMoonRay:mainfrom
jonahjnewton:freetype_cmake_fix
Open

Allow CMake to find freetype/freetype.h and ft2build.h#4
jonahjnewton wants to merge 1 commit intoOpenMoonRay:mainfrom
jonahjnewton:freetype_cmake_fix

Conversation

@jonahjnewton
Copy link
Copy Markdown

ReleaseNote

Compatibility (major, minor, patch, build)

build

Jira ticket

None

Release Notes Comment:

When building with freetype2 installed via the MacOS build-deps build dependencies, CMake finds freetype2/ft2build.h in the installs/include folder, but does not know where to look for freetype2/freetype/freetype.h. As such, we need to find this header's folder as an include dir, and then also add the parent freetype2 folder as an include dir. From the comment in the file, it seems like this is what was intended, but is not currently how FindFreeType.cmake is set up.

##Look or Scene Setup Change
No

Reviewers

@jlanz

Pull request comments

When building with freetype2 installed through the MacOS openmoonray build-deps, CMake finds freetype2/ft2build.h in the installs/include folder, but does not know where to look for freetype2/freetype/freetype.h. As such, we need to find this header, and then also add the freetype2 folder as an include directory as well. From the comment in the file, it seems like this is what was intended, but is not currently how FindFreeType.cmake is set up.

Signed-off-by: Jonah Newton <jonah@jonahnewton.com.au>
@jlanz
Copy link
Copy Markdown
Contributor

jlanz commented Jan 9, 2026

Thanks! I've created an internal ticket to address this.

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