tools: Link thread library for remote-compile

Fixes building on Linux, and possibly Windows

Change-Id: Ie8560618c4e0179e3a76da514d8835114b91b863
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/60349
Commit-Queue: Ben Clayton <bclayton@google.com>
Auto-Submit: Ben Clayton <bclayton@google.com>
Kokoro: Ben Clayton <bclayton@google.com>
Reviewed-by: Antonio Maiorano <amaiorano@google.com>
This commit is contained in:
Ben Clayton 2021-07-30 21:16:46 +00:00 committed by Tint LUCI CQ
parent ec4a1df77b
commit 6ed467a340
1 changed files with 3 additions and 0 deletions

View File

@ -19,8 +19,11 @@ set(SRC
socket.h socket.h
) )
find_package (Threads REQUIRED)
add_executable(tint-remote-compile ${SRC}) add_executable(tint-remote-compile ${SRC})
target_link_libraries (tint-remote-compile Threads::Threads)
target_include_directories(tint-remote-compile PRIVATE "${TINT_ROOT_SOURCE_DIR}") target_include_directories(tint-remote-compile PRIVATE "${TINT_ROOT_SOURCE_DIR}")
# If we're building on mac / ios and we have CoreGraphics, then we can use the # If we're building on mac / ios and we have CoreGraphics, then we can use the