Skip to content

Commit 848a488

Browse files
committed
Use target existence check as per review feedback
1 parent c725faa commit 848a488

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/cmake/modules/AddSwiftStdlib.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1354,7 +1354,7 @@ function(add_swift_target_library_single target name)
13541354
# when CMake will enforce a default (see
13551355
# https://gitlab.kitware.com/cmake/cmake/-/merge_requests/5291)
13561356
set_property(TARGET ${target} PROPERTY OSX_ARCHITECTURES "${SWIFTLIB_SINGLE_ARCHITECTURE}")
1357-
if (target_static)
1357+
if(TARGET "${target_static}")
13581358
set_property(TARGET ${target_static} PROPERTY OSX_ARCHITECTURES "${SWIFTLIB_SINGLE_ARCHITECTURE}")
13591359
endif()
13601360

0 commit comments

Comments
 (0)