summaryrefslogtreecommitdiff
path: root/cmake/Options.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/Options.cmake')
-rw-r--r--cmake/Options.cmake8
1 files changed, 7 insertions, 1 deletions
diff --git a/cmake/Options.cmake b/cmake/Options.cmake
index 977d54f06..c94a193b3 100644
--- a/cmake/Options.cmake
+++ b/cmake/Options.cmake
@@ -55,7 +55,13 @@ function(set_options)
option(OPTION_DEDICATED "Build dedicated server only (no GUI)" OFF)
option(OPTION_INSTALL_FHS "Install with Filesystem Hierarchy Standard folders" ${DEFAULT_OPTION_INSTALL_FHS})
option(OPTION_USE_ASSERTS "Use assertions; leave enabled for nightlies, betas, and RCs" ON)
- option(OPTION_USE_THREADS "Use threads" ON)
+ if(EMSCRIPTEN)
+ # Although pthreads is supported, it is not in a way yet that is
+ # useful for us.
+ option(OPTION_USE_THREADS "Use threads" OFF)
+ else()
+ option(OPTION_USE_THREADS "Use threads" ON)
+ endif()
option(OPTION_USE_NSIS "Use NSIS to create windows installer; enable only for stable releases" OFF)
option(OPTION_TOOLS_ONLY "Build only tools target" OFF)
option(OPTION_DOCS_ONLY "Build only docs target" OFF)