windows needs _snprintf
print path to the dir containing the generated CMakeLists for CMake
check for errors in 2 places
comment, formatting