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?

1 comment

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)

Please sign in to leave a comment.