cmake.cxx: Refactoring
- deduplicate string to enum value code
- avoid static variables inside functions (it requires additional code to check for initialization)
- avoid dynamic memory allocation for data, which is static by nature
- refactor (optimize) calls to
std::cout::operator<<()
- move
static
functions to the anonymous namespace - constness
Topic-rename: refactor-cmake.cxx
Edited by Brad King