Corrected if-test in cmake for RHEL.