Skip to content

Commit 81b5970

Browse files
authored
Merge pull request #21289 from compnerd/Fsystem
2 parents bdc6818 + 883966e commit 81b5970

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/modules/AddSwift.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1878,7 +1878,7 @@ function(add_swift_target_library name)
18781878
endforeach()
18791879

18801880
# Add PrivateFrameworks, rdar://28466433
1881-
if(SWIFTLIB_IS_SDK_OVERLAY)
1881+
if(sdk IN_LIST SWIFT_APPLE_PLATFORMS AND SWIFTLIB_IS_SDK_OVERLAY)
18821882
set(swiftlib_swift_compile_private_frameworks_flag "-Fsystem" "${SWIFT_SDK_${sdk}_ARCH_${arch}_PATH}/System/Library/PrivateFrameworks/")
18831883
endif()
18841884

0 commit comments

Comments
 (0)