(cmake) Remove useless flags definition

The removed elseif() block is never used, since the previous one
has exactly the same condition.