This related question shows how to build a CMake project using a specified numbers of cores. For example if I wanted to use 10 cores, I could invoke CMake like this:
cmake --build . -j 10
My question is: how can I build using all my available cores. I effectively want CMake to autodetect my core count and use all of them.