Skip to content

IAR/CXX: Fix compatibility with CMP0057 OLD

Raul Tambre requested to merge tambre/cmake:iar_cmp0057 into master

Commit a9073db7 (IAR: update language specification detection, 2021-09-23) added usage of the if() IN_LIST operation and forgot to account for it not being available in CMP0057 OLD mode.
Push and temporarily enable the policy. Also avoid the unnecessary temporary variable for the list.

Fixes: #23147 (closed)
Backport: release

Merge request reports