Set compile definition for each target separately.