16 lines
742 B
Diff
16 lines
742 B
Diff
diff --git a/swift-corelibs-foundation/Sources/Foundation/CMakeLists.txt b/swift-corelibs-foundation/Sources/Foundation/CMakeLists.txt
|
|
index 016bf294..cd534f16 100644
|
|
--- a/swift-corelibs-foundation/Sources/Foundation/CMakeLists.txt
|
|
+++ b/swift-corelibs-foundation/Sources/Foundation/CMakeLists.txt
|
|
@@ -166,6 +166,10 @@ if(CMAKE_SYSTEM_NAME STREQUAL Windows)
|
|
$<TARGET_OBJECTS:CoreFoundationResources>)
|
|
elseif(NOT CMAKE_SYSTEM_NAME STREQUAL Darwin)
|
|
target_link_options(Foundation PRIVATE "SHELL:-no-toolchain-stdlib-rpath")
|
|
+ if(${CMAKE_SYSTEM_NAME} STREQUAL Android)
|
|
+ target_link_libraries(Foundation PRIVATE android-spawn)
|
|
+ target_link_directories(Foundation PUBLIC ${CMAKE_FIND_ROOT_PATH}/usr/lib)
|
|
+ endif()
|
|
endif()
|
|
|
|
|