C++ 11 loops are spinning

CMake files updated