We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 511a26b commit 61a8e72Copy full SHA for 61a8e72
cmake/modules/AddSwift.cmake
@@ -1261,6 +1261,10 @@ function(_add_swift_library_single target name)
1261
"${SWIFT_NATIVE_SWIFT_TOOLS_PATH}/../lib/swift/${SWIFTLIB_SINGLE_SUBDIR}"
1262
"${SWIFT_NATIVE_SWIFT_TOOLS_PATH}/../lib/swift/${SWIFT_SDK_${SWIFTLIB_SINGLE_SDK}_LIB_SUBDIR}")
1263
1264
+ if(DEFINED ENV{SDKROOT})
1265
+ list(APPEND library_search_directories "$ENV{SDKROOT}/usr/lib/swift")
1266
+ endif()
1267
+
1268
# Add variant-specific flags.
1269
if(SWIFTLIB_SINGLE_TARGET_LIBRARY)
1270
set(build_type "${SWIFT_STDLIB_BUILD_TYPE}")
0 commit comments