Bugfix
   * Fix a compilation error when using CMake with an IAR toolchain.
     Fixes #5964.
