use cmake instead of path