summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorMichael Lutz <michi@icosahedron.de>2020-07-05 17:33:51 +0200
committerMichael Lutz <michi@icosahedron.de>2020-07-05 21:11:09 +0200
commitde4dc792a9e8e1740a82cb8ef6e9884d26d23f87 (patch)
tree5b3434245637597df0f71b95754efea372cfbd75 /cmake
parent716c883737b76757e0f3bcddeacc1e276dfff13b (diff)
downloadopenttd-de4dc792a9e8e1740a82cb8ef6e9884d26d23f87.tar.xz
Fix: [CMake] Re-enable multi-threaded compilation for MSVC project files.
Diffstat (limited to 'cmake')
-rw-r--r--cmake/CompileFlags.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmake/CompileFlags.cmake b/cmake/CompileFlags.cmake
index 6fe185df8..4adc4a31a 100644
--- a/cmake/CompileFlags.cmake
+++ b/cmake/CompileFlags.cmake
@@ -23,6 +23,9 @@ macro(compile_flags)
# C++11 standard". We need C++11 for the way we use threads.
add_compile_options(/Zc:rvalueCast)
+ # Enable multi-threaded compilation.
+ add_compile_options(/MP)
+
# Add DPI manifest to project; other WIN32 targets get this via ottdres.rc
list(APPEND GENERATED_SOURCE_FILES "${CMAKE_SOURCE_DIR}/os/windows/openttd.manifest")
endif (MSVC)