diff --git a/CMakeLists.txt b/CMakeLists.txt index c81e8c5aa..cf4ad6708 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -65,6 +65,8 @@ if (APPLE) endif (DARWIN_VERSION GREATER 9) endif (APPLE) +find_package(Threads) + if(${CMAKE_BUILD_TYPE} MATCHES "Release") add_definitions(-DNDEBUG) add_definitions(-DQT_NO_DEBUG_OUTPUT) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 7b28a959b..ae9670e44 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -729,8 +729,8 @@ target_link_libraries(clementine_lib ${QTSINGLEAPPLICATION_LIBRARIES} ${QTSINGLECOREAPPLICATION_LIBRARIES} ${QTIOCOMPRESSOR_LIBRARIES} + ${CMAKE_THREAD_LIBS_INIT} dl - pthread z )