-
Notifications
You must be signed in to change notification settings - Fork 18
Working with multiple toolchain versions
Felipe Torrezan edited this page Oct 6, 2025
·
3 revisions
When multiple toolchain versions are used with the same CMake project, the following method can be used.
- CMake projects using multiple versions of the IAR C/C++ Compilers.
- Create one
<your-iar-toolchain-file>.cmakeper toolchain, each one with its appropriate settings. Example:
bxarm-9.50.1.cmake
bxarm-8.50.6.cmake
- When configuring the CMake project, use
-Bto select which build directory will be used for each toolchain. Example, when executing from the project's top directory:
cmake -G Ninja -Bbuild-9.50.1 --toolchain /path/to/bxarm-9.50.1.cmake
cmake -G Ninja -Bbuild-8.50.6 --toolchain /path/to/bxarm-8.50.6.cmake
- Build each output individually
cmake --build build-9.50.1
cmake --build build-8.50.6
This is the cmake-tutorial wiki. Back to Wiki Home
- IAR Compiler options in a CMake project
- IAR ILINK options in a CMake project
- Language-specific target options
- Selecting build types
- Using Ninja Multi-Config
- Filing a build log
- Multi-file compilation
- Invoking IAR binary utilities
- Use the IAR ELF Tool to convert executable targets to their binary formats
- Using IAR Build Tools with CMake Presets