Hello,
Please, take a look at this: iar - How to specify a compiler in CMake? - Stack Overflow .
best,
PC