Using all core for compilation of MSVC build?

I can't seem to get windows to compile with every core. Despite passing /MP${CORE_COUNT} to CMAKE_CXX_FLAGS and CMAKE_C_FLAGS processor utilization seems to only top out at about 10% for the entire compilation period. How may I go about compiling with all cores?

0
1 comment
Avatar
Michael Lojkovic

I just installed jom from Qt, and configured CMake to generate jom instead of nmake files.

set(CMAKE_MAKE_PROGRAM "Path/to/jom.exe"
CACHE STRING "Set make program to jom" FORCE)
 
0

Please sign in to leave a comment.