Don't require SDL2 for building the servers.
Requiring SDL2 was masking needing to add -lpthread explicitly.
This commit is contained in:
parent
5c2ab63448
commit
9e0de75a75
2 changed files with 4 additions and 1 deletions
|
@ -72,7 +72,9 @@ else()
|
|||
message(WARNING "You are cross-compiling. Skipping IEEE 754 test.")
|
||||
endif()
|
||||
|
||||
find_package(SDL2 2.0.4 REQUIRED)
|
||||
if(ENABLE_GAME OR ENABLE_TESTS)
|
||||
find_package(SDL2 2.0.4 REQUIRED)
|
||||
endif(ENABLE_GAME OR ENABLE_TESTS)
|
||||
find_package(Crypto 1.0 REQUIRED)
|
||||
find_package(Boost 1.50 REQUIRED COMPONENTS iostreams program_options regex system thread random)
|
||||
|
||||
|
|
|
@ -94,6 +94,7 @@ endif(ENABLE_HISTORY AND HISTORY_FOUND)
|
|||
set(server-external-libs
|
||||
${common-external-libs}
|
||||
${Boost_SYSTEM_LIBRARIES}
|
||||
-lpthread
|
||||
)
|
||||
|
||||
set(tools-external-libs
|
||||
|
|
Loading…
Add table
Reference in a new issue