"git@gitlab.completext.com:quzar/Cockatrice.git" did not exist on "3605cc55b7d788491198a2aec4baab70242e6b25"
Commit 02d5fc64 authored by Gavin Bisesi's avatar Gavin Bisesi
Browse files

Merge pull request #54 from mattkelly/pthread-fix

Fix pthread compile errors on Linux
parents cf26ecb8 b93317cc
......@@ -48,5 +48,9 @@ INCLUDE_DIRECTORIES(${PROTOBUF_INCLUDE_DIR})
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR})
add_library(cockatrice_common ${common_SOURCES} ${common_HEADERS_MOC})
target_link_libraries(cockatrice_common cockatrice_protocol)
# Without this check, Linux will put -pthread out of order in link.txt and build will fail
if (UNIX)
target_link_libraries(cockatrice_common cockatrice_protocol pthread)
else (UNIX)
target_link_libraries(cockatrice_common cockatrice_protocol)
endif (UNIX)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment