cmake: skip build system check on compile