Commit 82e7f4ba authored by Adrian Johnson's avatar Adrian Johnson

Make poppler compile if threads not available

parent 350b9055
......@@ -102,8 +102,11 @@ else()
message(FATAL_ERROR "Invalid font configuration setting: ${FONT_CONFIGURATION}")
endif()
if(CMAKE_USE_PTHREADS_INIT OR WIN32)
set(MULTITHREADED ON)
endif()
# Enable these unconditionally.
set(MULTITHREADED ON)
set(OPI_SUPPORT ON)
set(TEXTOUT_WORD_LIST ON)
......
......@@ -30,6 +30,8 @@
#ifndef GMUTEX_H
#define GMUTEX_H
#ifdef MULTITHREADED
// Usage:
//
// GooMutex m;
......@@ -82,4 +84,6 @@ private:
GooMutex *mutex;
};
#endif
#endif // MULTITHREADED
#endif // GMUTEX_H
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment