Skip to content

Commit a9ab52a

Browse files
committed
Fix typo in Darwin CMake script
1 parent af04b99 commit a9ab52a

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

Xcode/SDL/pkg-support/resources/CMake/SDL3Config.cmake

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ set(_current_path "${CMAKE_CURRENT_LIST_DIR}")
3838
get_filename_component(_current_path "${_current_path}" REALPATH)
3939
set(_sdl3_framework_path "")
4040

41-
set(_current_path "${_sdl3_framework_path}")
4241
while(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

5655
if(NOT _sdl3_framework_path)
5756
message(FATAL_ERROR "Could not find SDL3.framework root from ${CMAKE_CURRENT_LIST_DIR}")

0 commit comments

Comments
 (0)