mirror of https://github.com/OpenTTD/OpenTTD
Fix: [CMake] Re-enable multi-threaded compilation for MSVC project files.
parent
716c883737
commit
de4dc792a9
|
@ -23,6 +23,9 @@ macro(compile_flags)
|
||||||
# C++11 standard". We need C++11 for the way we use threads.
|
# C++11 standard". We need C++11 for the way we use threads.
|
||||||
add_compile_options(/Zc:rvalueCast)
|
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
|
# 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")
|
list(APPEND GENERATED_SOURCE_FILES "${CMAKE_SOURCE_DIR}/os/windows/openttd.manifest")
|
||||||
endif (MSVC)
|
endif (MSVC)
|
||||||
|
|
Loading…
Reference in New Issue