Impossible to expliticly disable multiprocessor compilation for MS VisualStudio
Visual Studio since VS2010 support /MP[x]
option for specifying maximal number of parallel build processes.
And to limit processes to one (disabling parallel build) you can specify /MP1
However, CMake 3.6 treats all /MP<anything>
switches passed via COMPILE_FLAGS
as simply /MP
.
Because of this it is impossible, for example, to specify parallel build for a project, but disable it for certain files. Or explicitly disable it fir a project at all.
This is serious since for example MSVC does not support #import directive along with /MP
.