Permalink
Browse files

Merge pull request #1231 from Alberth289346/add_threading_lib

Add threading library to the build, for g++
  • Loading branch information...
TheCycoONE committed Jul 21, 2017
2 parents 4817cdb + 1ad7ca8 commit 6a079fd02bc456be7410e4394d7661308e86b3bf
Showing with 4 additions and 0 deletions.
  1. +4 −0 CorsixTH/CMakeLists.txt
View
@@ -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)

0 comments on commit 6a079fd

Please sign in to comment.