From 6ef398cce20d61dfc1979729a4d9810b68e58ff9 Mon Sep 17 00:00:00 2001 From: Oliver Hamlet Date: Mon, 17 Jul 2017 16:58:41 +0100 Subject: [PATCH] Explicitly link to pthread for Linux builds This fixes a GCC 7 linker error, as in #8. --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index cc5e2c7d..c3fd54ce 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -278,7 +278,8 @@ IF (CMAKE_COMPILER_IS_GNUCXX) curl z crypto - rt) + rt + pthread) ENDIF () IF (MSVC)