• Adrian Johnson's avatar
    Use -pthread flag instead of -lpthread · 350b9055
    Adrian Johnson authored
    The -pthread flag should be used for compiling with threads as it sets
    flags for both the preprocessor and linker.
    
    In cmake this is achieved with the set(THREADS_PREFER_PTHREAD_FLAG TRUE)
    before find_package(Threads) and using the Threads::Threads import target.
    
    Also added set(CMAKE_THREAD_PREFER_PTHREAD TRUE) as we only support
    pthread on non windows platforms.
    350b9055
Name
Last commit
Last update
..
.gitignore Loading commit data...
CMakeLists.txt Loading commit data...
HtmlFonts.cc Loading commit data...
HtmlFonts.h Loading commit data...
HtmlLinks.cc Loading commit data...
HtmlLinks.h Loading commit data...
HtmlOutputDev.cc Loading commit data...
HtmlOutputDev.h Loading commit data...
HtmlUtils.h Loading commit data...
ImageOutputDev.cc Loading commit data...
ImageOutputDev.h Loading commit data...
JSInfo.cc Loading commit data...
JSInfo.h Loading commit data...
parseargs.cc Loading commit data...
parseargs.h Loading commit data...
pdf2xml.dtd Loading commit data...
pdfdetach.1 Loading commit data...
pdfdetach.cc Loading commit data...
pdffonts.1 Loading commit data...
pdffonts.cc Loading commit data...
pdfimages.1 Loading commit data...
pdfimages.cc Loading commit data...
pdfinfo.1 Loading commit data...
pdfinfo.cc Loading commit data...
pdfseparate.1 Loading commit data...
pdfseparate.cc Loading commit data...
pdfsig.1 Loading commit data...
pdfsig.cc Loading commit data...
pdftocairo-win32.cc Loading commit data...
pdftocairo-win32.h Loading commit data...
pdftocairo.1 Loading commit data...
pdftocairo.cc Loading commit data...
pdftohtml.1 Loading commit data...
pdftohtml.cc Loading commit data...
pdftoppm.1 Loading commit data...
pdftoppm.cc Loading commit data...
pdftops.1 Loading commit data...
pdftops.cc Loading commit data...
pdftotext.1 Loading commit data...
pdftotext.cc Loading commit data...
pdfunite.1 Loading commit data...
pdfunite.cc Loading commit data...
printencodings.cc Loading commit data...
printencodings.h Loading commit data...