Skip to content

Commit

Permalink
Add threading library to the build, for g++
Browse files Browse the repository at this point in the history
  • Loading branch information
Alberth289346 committed Jul 19, 2017
1 parent 4817cdb commit 1ad7ca8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CorsixTH/CMakeLists.txt
Expand Up @@ -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)
Expand Down

0 comments on commit 1ad7ca8

Please sign in to comment.