From 93e603e031ea56fad5f417552972cb64a5e3927d Mon Sep 17 00:00:00 2001 From: Luis Diaz Mas Date: Thu, 17 Aug 2017 23:22:23 +0200 Subject: [PATCH] Fix linking problems with pthreads --- src/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index d2c9b6ed..8e651b10 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -226,6 +226,7 @@ else() if ( UNIX AND NOT FREEBSD ) target_link_libraries( exiv2lib PRIVATE dl) endif() + target_link_libraries( exiv2lib PRIVATE Threads::Threads) target_link_libraries( exiv2lib PUBLIC ${CURL_LIBRARIES} ${SSH_LIBRARIES}) endif()