Skip to content

Compiler/IAR: Avoid clobbering CMAKE_EXECUTABLE_SUFFIX

Lorenzo requested to merge lorcap/cmake:issue_22426 into master

When cross-compiling, usage of CMAKE_EXECUTABLE_SUFFIX confuses other modules such as find_package(ImageMagick COMPONENTS magick), which fails in finding magick because of wrong suffix. CMAKE_EXECUTABLE_SUFFIX_<LANG> is the correct override for this purpose.

Fixes: #22426 (closed)
Backport: release
Topic-rename: iar-exe-suffix

Edited by Brad King

Merge request reports