make -j4 install I think is bound to gcc. Perhaps that's the problem?
More generic way would be:
cmake --build . -j 4 --target install
But the -j (parallel builds) was introduced in 3.11, so if you're running an older cmake, either update it or simply remove -j, like this:
cmake --build . --target install
Originally posted by @eknabevcc in #6 (comment)