From 41baf23e4475c4c0bb31296a89829437d25ab5b3 Mon Sep 17 00:00:00 2001 From: a dinosaur Date: Sat, 9 Mar 2024 21:20:08 +1100 Subject: [PATCH] cmake: fix empty framework prefix on MacOS --- Xcode/SDL/pkg-support/resources/CMake/sdl3-config.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Xcode/SDL/pkg-support/resources/CMake/sdl3-config.cmake b/Xcode/SDL/pkg-support/resources/CMake/sdl3-config.cmake index 5a4e7b431..2fd2d7c3e 100644 --- a/Xcode/SDL/pkg-support/resources/CMake/sdl3-config.cmake +++ b/Xcode/SDL/pkg-support/resources/CMake/sdl3-config.cmake @@ -33,8 +33,8 @@ set(SDL3_FOUND TRUE) # Compute the installation prefix relative to this file. get_filename_component(_sdl3_framework_path "${CMAKE_CURRENT_LIST_FILE}" PATH) # /SDL3.framework/Resources/CMake/ -get_filename_component(_sdl3_framework_path "${_IMPORT_PREFIX}" PATH) # /SDL3.framework/Resources/ -get_filename_component(_sdl3_framework_path "${_IMPORT_PREFIX}" PATH) # /SDL3.framework/ +get_filename_component(_sdl3_framework_path "${_sdl3_framework_path}" PATH) # /SDL3.framework/Resources/ +get_filename_component(_sdl3_framework_path "${_sdl3_framework_path}" PATH) # /SDL3.framework/ get_filename_component(_sdl3_framework_parent_path "${_sdl3_framework_path}" PATH) # / set_and_check(_sdl3_include_dirs "${_sdl3_framework_path}/Headers")