Skip to content

Commit

Permalink
Don't require SDL2 or OGL for building the servers.
Browse files Browse the repository at this point in the history
Requiring SDL2 was masking needing to add -lpthread explicitly.
  • Loading branch information
Pentarctagon committed May 15, 2018
1 parent ba6fa1e commit fd34fe8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
8 changes: 5 additions & 3 deletions CMakeLists.txt
Expand Up @@ -76,9 +76,11 @@ else()
message(WARNING "You are cross-compiling. Skipping IEEE 754 test.")
endif()

find_package(OpenGL REQUIRED)
find_package(GLEW REQUIRED)
find_package(SDL2 2.0.4 REQUIRED)
if(ENABLE_GAME OR ENABLE_TESTS)
find_package(OpenGL REQUIRED)
find_package(GLEW REQUIRED)
find_package(SDL2 2.0.4 REQUIRED)
endif(ENABLE_GAME OR ENABLE_TESTS)
find_package(Crypto 1.0 REQUIRED)
find_package(Boost 1.56 REQUIRED COMPONENTS iostreams program_options regex system random)

Expand Down
1 change: 1 addition & 0 deletions src/CMakeLists.txt
Expand Up @@ -96,6 +96,7 @@ set(server-external-libs
${Boost_RANDOM_LIBRARY}
${CRYPTO_LIBRARY}
${MYSQL_LIBS}
-lpthread
)

if(ENABLE_FRIBIDI AND FRIBIDI_FOUND)
Expand Down

0 comments on commit fd34fe8

Please sign in to comment.