Commit | Line | Data |
---|---|---|
efabca92 HG |
1 | --- ./CMakeLists.txt 2017-11-12 18:14:32.000000000 +0000 |
2 | +++ ../CMakeLists.txt 2017-11-18 19:48:53.494691943 +0000 | |
3 | @@ -60,6 +60,7 @@ | |
4 | option(USE_FIXEDPOINT "Use fixed point arithmetic in the Splash backend" OFF) | |
5 | option(USE_FLOAT "Use single precision arithmetic in the Splash backend" OFF) | |
6 | option(BUILD_SHARED_LIBS "Build poppler as a shared library" ON) | |
7 | +option(ENABLE_MULTITHREAD "Build with multithread support" ON) | |
8 | if(WIN32) | |
9 | option(ENABLE_RELOCATABLE "Do not hardcode the poppler library location (on Windows)." ON) | |
10 | else() | |
11 | @@ -105,7 +106,7 @@ | |
12 | message(FATAL_ERROR "Invalid font configuration setting: ${FONT_CONFIGURATION}") | |
13 | endif() | |
14 | ||
15 | -if(CMAKE_USE_PTHREADS_INIT OR WIN32) | |
16 | +if((CMAKE_USE_PTHREADS_INIT OR WIN32) AND ENABLE_MULTITHREAD) | |
17 | set(MULTITHREADED ON) | |
18 | endif() | |
19 |