Skip to content

Commit

Permalink
fix errors re using freetype
Browse files Browse the repository at this point in the history
  • Loading branch information
aoterodelaroza committed Jan 17, 2024
1 parent 9e417f8 commit 7d30943
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gui/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ if (USE_GUI_THREADS)
endif()

## freetype
if (FREETYPE2_FOUND)
if (FREETYPE_FOUND)
set(SOURCES ${SOURCES} imgui/imgui_freetype.cpp)
add_definitions("-DIMGUI_ENABLE_FREETYPE")
set_property(SOURCE cimgui/cimgui.cpp APPEND PROPERTY COMPILE_FLAGS "-DCIMGUI_FREETYPE")
Expand All @@ -55,4 +55,4 @@ add_library(fgui OBJECT ${SOURCES})
## include directories
target_include_directories(fgui PRIVATE "${GLFW3_INCLUDE_DIR}")
target_include_directories(fgui PRIVATE "${CMAKE_BINARY_DIR}/src/")
target_include_directories(fgui PRIVATE "${FREETYPE2_INCLUDE_DIRS}")
target_include_directories(fgui PRIVATE "${FREETYPE_INCLUDE_DIRS}")

0 comments on commit 7d30943

Please sign in to comment.