Skip to content

Commit

Permalink
Set HAVE_FREETYPE to 1 if FreeType is required
Browse files Browse the repository at this point in the history
CMake 3.28 sets `Freetype_FOUND` instead of `FREETYPE_FOUND`, causing `HAVE_FREETYPE`
to be set to 0.
  • Loading branch information
Fulgen301 committed Oct 28, 2023
1 parent dd4f578 commit bb5185e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ list(APPEND PCH_EXTRA <fmt/format.h> <fmt/printf.h>)
if (NOT USE_CONSOLE)
find_package(Freetype REQUIRED)
target_link_libraries(clonk Freetype::Freetype)
set(HAVE_FREETYPE ${FREETYPE_FOUND})
set(HAVE_FREETYPE 1)
endif ()

# Link GTK2
Expand Down

0 comments on commit bb5185e

Please sign in to comment.