cmake: try to fix if evaluation