From 1ad7ca855be6fe864621f6e3a11ca9df569202c4 Mon Sep 17 00:00:00 2001 From: Alberth Date: Wed, 19 Jul 2017 15:12:48 +0200 Subject: [PATCH] Add threading library to the build, for g++ --- CorsixTH/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CorsixTH/CMakeLists.txt b/CorsixTH/CMakeLists.txt index ef52250c9..4ccd96232 100644 --- a/CorsixTH/CMakeLists.txt +++ b/CorsixTH/CMakeLists.txt @@ -118,6 +118,10 @@ ELSE(Lua_FOUND) message(FATAL_ERROR "Error: Lua library not found, it is required to build") ENDIF(Lua_FOUND) +# Add threading library +find_package(Threads) +target_link_libraries(CorsixTH ${CMAKE_THREAD_LIBS_INIT}) + # Find SDL_mixer IF(CORSIX_TH_USE_SDL_MIXER) FIND_PACKAGE(SDL2_mixer REQUIRED)