Another attempt at reordering stuff in the CMakeLists.txt. So fragile.