From 444f8ae03c1de153b60a4525bc12d36d183f3a57 Mon Sep 17 00:00:00 2001 From: David Sansome Date: Wed, 3 Nov 2010 21:11:43 +0000 Subject: [PATCH] Don't try to link against pthreads on windows --- CMakeLists.txt | 2 ++ src/CMakeLists.txt | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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 )