Fix Android linking issue with libpthread (#203)

This commit is contained in:
fpliu 2021-11-16 07:01:36 +08:00 committed by GitHub
parent 6558c271dd
commit e7a443daa8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -87,7 +87,10 @@ if(LUAU_BUILD_CLI)
target_link_libraries(Luau.Repl.CLI PRIVATE Luau.Compiler Luau.VM)
if(UNIX)
target_link_libraries(Luau.Repl.CLI PRIVATE pthread)
find_library(LIBPTHREAD pthread)
if (LIBPTHREAD)
target_link_libraries(Luau.Repl.CLI PRIVATE pthread)
endif()
endif()
if(NOT EMSCRIPTEN)