Enable parallel builds (/MP flag) in CMake's own makefiles
When building the CMake project and all of its dependencies, the /MP
flag is not enabled when using the Visual Studio generator. This is a very simple addition:
if(MSVC)
add_definitions(/MP)
endif()
I put this around line 120 in the root CMakeLists.txt file and CMake builds just fine with it. Would anyone be opposed to me submitting a pull request with this change? I want to discuss it in an issue before I provide a pull request.