From 4e1b35b71e2a70fcc22ebcfaf9da9d41ca8dec70 Mon Sep 17 00:00:00 2001 From: Gleb Mazovetskiy Date: Sat, 5 Oct 2019 15:05:11 +0100 Subject: [PATCH] FindSDL2_ttf.cmake: Fix header check Refs #321 --- CMake/FindSDL2_ttf.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMake/FindSDL2_ttf.cmake b/CMake/FindSDL2_ttf.cmake index 534213695..922a0463c 100644 --- a/CMake/FindSDL2_ttf.cmake +++ b/CMake/FindSDL2_ttf.cmake @@ -92,7 +92,7 @@ if(APPLE AND "${SDL2_ttf_LIBRARY}" MATCHES "(/[^/]+)*.framework(/.*)?$") # If we found a framework, do a search for the header ahead of time that will be more likely to get the framework header. find_path(SDL2_ttf_INCLUDE_DIR NAMES - SDL_mixer.h + SDL_ttf.h HINTS "${SDL2_ttf_FRAMEWORK}/Headers/") else() @@ -104,7 +104,7 @@ endif() find_path(SDL2_ttf_INCLUDE_DIR NAMES - SDL_mixer.h + SDL_ttf.h HINTS ${SDL2_ttf_INCLUDE_HINTS} PATHS