Fix an issue occuring with commented cmake rules.