From 44996a484a37b2ca6f37cec83674c754d5b98fb3 Mon Sep 17 00:00:00 2001 From: IoIxD Date: Wed, 6 May 2026 18:23:27 -0700 Subject: [PATCH] fix cmake --- CMakeLists.txt | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a67a319..ac7f7a7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -60,7 +60,7 @@ endif() if(MW_TRY_OPENGL) find_package(OpenGL) - if(OpenGL_FOUND and NOT APPLE) + if(OpenGL_FOUND AND NOT APPLE) set(MW_BUILD_OPENGL ON) message(STATUS "OpenGL widget has been enabled") else() @@ -130,15 +130,18 @@ endif() if(MW_USE_FREETYPE2) find_package(Freetype) if(Freetype_FOUND) + message(STATUS "FreeType2 found") target_compile_definitions( Mw PRIVATE USE_FREETYPE2 ) - list(APPEND INCLUDE_DIRS ${FT2_INCLUDE_DIRS}) - list(APPEND LIBRARY_DIRS ${FT2_LIBRARY_DIRS}) - list(APPEND LIBRARIES ${FT2_LIBRARIES}) + list(APPEND INCLUDE_DIRS ${FREETYPE_INCLUDE_DIRS}) + list(APPEND LIBRARY_DIRS ${FREETYPE_LIBRARY_DIRS}) + list(APPEND LIBRARIES ${FREETYPE_LIBRARIES}) + else() + message(WARNING "FreeType2 not found") endif() endif()