Skip to content

Commit

Permalink
cmake: Prefer -lpthread for now because clang++ and VLC
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ocrete committed Jul 19, 2018
1 parent 9711665 commit b80940e
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit b80940e

Please sign in to comment.