File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
Xcode/SDL/pkg-support/resources/CMake Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,6 @@ set(_current_path "${CMAKE_CURRENT_LIST_DIR}")
3838get_filename_component (_current_path "${_current_path} " REALPATH)
3939set (_sdl3_framework_path "" )
4040
41- set (_current_path "${_sdl3_framework_path} " )
4241while (NOT _sdl3_framework_path)
4342 if (IS_DIRECTORY "${_current_path} " AND "${_current_path} " MATCHES "/SDL3\\ .framework$" )
4443 set (_sdl3_framework_path "${_current_path} " )
@@ -48,10 +47,10 @@ while(NOT _sdl3_framework_path)
4847 if ("${_current_path} " STREQUAL "${_next_current_path} " )
4948 break ()
5049 endif ()
51- set (_next_current_path "${_current_path } " )
52- endforeach ()
53- set (_next_current_path )
54- set (_next_current_path)
50+ set (_current_path "${_next_current_path } " )
51+ endwhile ()
52+ unset (_current_path )
53+ unset (_next_current_path)
5554
5655if (NOT _sdl3_framework_path)
5756 message (FATAL_ERROR "Could not find SDL3.framework root from ${CMAKE_CURRENT_LIST_DIR} " )
You can’t perform that action at this time.
0 commit comments