fixing cmake script for graph