convenience routine for checking for target cpp defines