Files
CMake/CompileFlags.cmake
Robert Dailey a1dee224b8 CMake: Enable /MP for MSVC toolchain
A new cache option named `CMake_MSVC_PARALLEL` is now available that can
be used to control the usage of [`/MP`][1] to the MSVC compiler. This
enables parallelized builds on a per-translation unit basis. To enable
`/MP`, specify value `ON` to the option. Using an integral non-zero
value will control the specific number of threads used with the `/MP`
option, as opposed to letting the toolchain decide for you.

Fixes #17696

[1]: https://docs.microsoft.com/en-us/cpp/build/reference/mp-build-with-multiple-processes
2018-02-15 10:45:37 -06:00

3.6 KiB