z_vcpkg_fixup_rpath_macho.cmake: Fix empty list check (#41443)

This commit is contained in:
autoantwort 2024-10-10 00:57:18 +02:00 committed by GitHub
parent 4f93ec0b4b
commit c45ac46dcc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -142,7 +142,7 @@ function(z_vcpkg_fixup_macho_rpath_in_dir)
foreach(rpath IN LISTS rpath_list) foreach(rpath IN LISTS rpath_list)
list(APPEND rpath_args "-delete_rpath" "${rpath}") list(APPEND rpath_args "-delete_rpath" "${rpath}")
endforeach() endforeach()
if(rpath_args STREQUAL "") if(NOT rpath_args)
continue() continue()
endif() endif()