remove redundancy in buildsystem/cpp.cmake