Need to use explicit check in cmake