1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-15 11:03:00 +01:00

Add threading library to CLI

This commit is contained in:
Michał Janiszewski
2018-03-20 09:27:41 +01:00
committed by Ted John
parent af0967e95e
commit 24c2fcbb6c

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 ()