replaced ifdef by if
[cmake] add dune-grid related guard