Skip to content

Instantly share code, notes, and snippets.

@emidln
Created May 11, 2013 04:04
Show Gist options
  • Save emidln/5558849 to your computer and use it in GitHub Desktop.
Save emidln/5558849 to your computer and use it in GitHub Desktop.
--- common/CMakeLists.txt 2013-05-10 23:56:14.290279120 -0400
+++ common/CMakeLists.txt 2013-05-10 23:55:53.326241934 -0400
@@ -39,6 +39,7 @@
FIND_PACKAGE(Qt4 REQUIRED)
FIND_PACKAGE(Protobuf REQUIRED)
+FIND_PACKAGE(Threads REQUIRED)
QT4_WRAP_CPP(common_HEADERS_MOC ${common_HEADERS})
INCLUDE(${QT_USE_FILE})
@@ -48,5 +49,5 @@
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR})
add_library(cockatrice_common ${common_SOURCES} ${common_HEADERS_MOC})
-target_link_libraries(cockatrice_common cockatrice_protocol)
+target_link_libraries(cockatrice_common cockatrice_protocol ${CMAKE_THREAD_LIBS_INIT})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment