More portable version of cmake