[cmake] fix find gladys

Thanks to Cyril R. for the bug report.