added WITH_MATIO in config.h.cmake