Add threading library to CLI

This commit is contained in:
Michał Janiszewski authored and Ted John committed 2018-03-22 20:16:58 +00:00
1 parent af0967e95e
commit 24c2fcbb6c
1 file changed
+5
+5
View File
@@ -17,6 +17,11 @@ add_executable(${PROJECT} ${OPENRCT2_CLI_SOURCES})
target_link_libraries(${PROJECT} "libopenrct2")
# Needed for interactive console
set(THREADS_PREFER_PTHREAD_FLAG ON)
find_package(Threads REQUIRED)
target_link_libraries(${PROJECT} Threads::Threads)
if (APPLE)
target_link_libraries(${PROJECT} "-framework Cocoa")
endif ()