I have a cmake project with many cpp files (around 400+) and using /MP (multithreaded) compiler option speeds up the compilation significantly on CPU's with many cores.
The problem is, that everytime I regenerate the solution files using CMake, the option is disabled, resulting in compilation being very slow. I can fix that by changing option of EVERY single project (solution consist of many various projects) by hand inside of Visual Studio. However, everytime I regenerate the solution files by running CMake (for example when I git pull someone else's changes which added / removed some files) this change gets overwritten.
How can I make it persistent so that CMake always enable multithreaded compilation inside of VS projects?