Setting base before using it in CMakeLists