cmake: fix xcc not supporting -Wno-unsed-but-set-variable XCC does not support the compiler flag -Wno-unused-but-set-variable so check for flag support before setting it in cmake. Fixes #29707 Signed-off-by: Daniel Leung <daniel.leung@intel.com>