Fix cmake if in configVersion