Skip to content

Commit

Permalink
BUILD: Link Phaethon with pthread when using CMake
Browse files Browse the repository at this point in the history
Qt requires a threading library. No idea why pthread is not already
included in variable for the Qt libraries.
  • Loading branch information
DrMcCoy committed Dec 29, 2017
1 parent db60951 commit 28e66b2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,7 @@ endif()
set(HAVE_PTHREAD ${CMAKE_USE_PTHREADS_INIT})
if(CMAKE_USE_PTHREADS_INIT)
set(PTHREAD_LIBS ${CMAKE_THREAD_LIBS_INIT})
list(APPEND PHAETHON_LIBRARIES ${PTHREAD_LIBS})
endif()


Expand Down

0 comments on commit 28e66b2

Please sign in to comment.