subclassing package.py
def removeStdCxxFlag(self,flags):
'''Remove the -std=[CXX_VERSION] flag from the list of flags, but only for CMake packages'''
if issubclass(type(self),config.package.CMakePackage):
Instead of if issubclass(type(self)) it should have a base method that does nothing in the package class. Then in the Cmake subclass it can define this full method.