[cmake] fix 189e19d7e7d2a2c6cc53f053622d547713823d7b
* ensure dune-commons cmake stuff is used only with --use-cmake