From b80940e1698699697b7005749aba7bfa8b62df4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20Cr=C3=AAte?= Date: Tue, 17 Jul 2018 11:24:39 -0400 Subject: [PATCH] cmake: Prefer -lpthread for now because clang++ and VLC It seems that clang doesn't support -pthread at the linking stage, but only at the compilation, so putting it into the .pc file causes issues. --- CMakeLists.txt | 1 - 1 file changed, 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 27a1a5b1f..616af94da 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -358,7 +358,6 @@ elseif (WIN32) message(FATAL_ERROR "Failed to find pthread library. Specify PTHREAD_LIBRARY.") endif() else () - set(THREADS_PREFER_PTHREAD_FLAG ON) find_package(Threads REQUIRED) set(PTHREAD_LIBRARY ${CMAKE_THREAD_LIBS_INIT}) endif()