tools/cmake: fix parallel build with Make 4.2+