fixed the cmake check