Skip to content

Commit

Permalink
Improve threading library handling
Browse files Browse the repository at this point in the history
  • Loading branch information
AMDmi3 committed Jul 10, 2015
1 parent 6ec0ab5 commit 8b69bbd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/CMakeLists.txt
Expand Up @@ -71,8 +71,11 @@ set(COMMON_LIBS
IF (MINGW)
set(COMMON_LIBS ${COMMON_LIBS} -lws2_32)
ENDIF (MINGW)
IF (UNIX)
set(COMMON_LIBS ${COMMON_LIBS} ${CMAKE_THREAD_LIBS_INIT})
ENDIF ()
IF (CMAKE_SYSTEM_NAME MATCHES "Linux")
set(COMMON_LIBS ${COMMON_LIBS} pthread dl)
set(COMMON_LIBS ${COMMON_LIBS} dl)
ENDIF ()

option(BUILD_LUA_MODULE "Build Lua module" FALSE)
Expand Down

0 comments on commit 8b69bbd

Please sign in to comment.