From 48c6a7d5d13d01d9cc886ba435d047b6424c4e29 Mon Sep 17 00:00:00 2001 From: Robert Knight Date: Mon, 22 Aug 2011 15:51:50 +0100 Subject: [PATCH] Avoid trying to link against the pthreads library when building on Win32 --- src/CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index bf7051e..f69975a 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -35,10 +35,12 @@ target_link_libraries(updatershared tinyxml minizip tinythread - # TODO - Mac and Windows version - pthread ) +if (UNIX) + target_link_libraries(updatershared pthread) +endif() + add_executable(updater main.cpp )