Find pthread in CMakeLists.txt (#1714)

* Add threads package

* Don't make it required as per the website source
This commit is contained in:
Wesley Shillingford 2019-02-16 10:35:55 +00:00 committed by GitHub
commit a055ad7c86
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -30,9 +30,7 @@ endif()
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
# TODO check if any library requires these
#find_package(Threads REQUIRED)
#set (PLATFORM_LIBS ${CMAKE_THREAD_LIBS_INIT} ${CMAKE_DL_LIBS})
find_package(Threads)
if (WIN32)
add_definitions(-D_WIN32_WINNT=0x0600