summaryrefslogtreecommitdiffstats
path: root/Modules/Compiler
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-07-20 15:54:56 (GMT)
committerKitware Robot <kwrobot@kitware.com>2021-07-20 15:55:05 (GMT)
commit0a63927b6d7b6c37485581446ced527aaa28d8cc (patch)
treef0f93755aba071dc5e9d9073e6aab059d30c550d /Modules/Compiler
parentc9d440fcaa878f7dac81e97c3edcdf8b4e14e833 (diff)
parent1c66012f8eafb136335278d2bbb63319a01bb093 (diff)
downloadCMake-0a63927b6d7b6c37485581446ced527aaa28d8cc.zip
CMake-0a63927b6d7b6c37485581446ced527aaa28d8cc.tar.gz
CMake-0a63927b6d7b6c37485581446ced527aaa28d8cc.tar.bz2
Merge topic 'iar-host-exe'
1c66012f8e Compiler/IAR: search for both IAR's binaries * and *.exe Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6362
Diffstat (limited to 'Modules/Compiler')
-rw-r--r--Modules/Compiler/IAR-FindBinUtils.cmake32
1 files changed, 24 insertions, 8 deletions
diff --git a/Modules/Compiler/IAR-FindBinUtils.cmake b/Modules/Compiler/IAR-FindBinUtils.cmake
index 6c67d34..01f6d22 100644
--- a/Modules/Compiler/IAR-FindBinUtils.cmake
+++ b/Modules/Compiler/IAR-FindBinUtils.cmake
@@ -20,19 +20,31 @@ if("${CMAKE_${_CMAKE_PROCESSING_LANGUAGE}_COMPILER_ARCHITECTURE_ID}" STREQUAL "A
string(TOLOWER "${CMAKE_${_CMAKE_PROCESSING_LANGUAGE}_COMPILER_ARCHITECTURE_ID}" _archid_lower)
# Find linker
- find_program(CMAKE_IAR_LINKER ilink${_archid_lower} HINTS ${__iar_hints}
+ find_program(CMAKE_IAR_LINKER
+ NAMES ilink${_archid_lower} ilink${_archid_lower}.exe
+ HINTS ${__iar_hints}
DOC "The IAR ILINK linker")
- find_program(CMAKE_IAR_ARCHIVE iarchive HINTS ${__iar_hints}
+ find_program(CMAKE_IAR_ARCHIVE
+ NAMES iarchive iarchive.exe
+ HINTS ${__iar_hints}
DOC "The IAR archiver")
# Find utility tools
- find_program(CMAKE_IAR_ELFTOOL ielftool HINTS ${__iar_hints}
+ find_program(CMAKE_IAR_ELFTOOL
+ NAMES ielftool ielftool.exe
+ HINTS ${__iar_hints}
DOC "The IAR ELF Tool")
- find_program(CMAKE_IAR_ELFDUMP ielfdump${_archid_lower} HINTS ${__iar_hints}
+ find_program(CMAKE_IAR_ELFDUMP
+ NAMES ielfdump${_archid_lower} ielfdump${_archid_lower}.exe
+ HINTS ${__iar_hints}
DOC "The IAR ELF Dumper")
- find_program(CMAKE_IAR_OBJMANIP iobjmanip HINTS ${__iar_hints}
+ find_program(CMAKE_IAR_OBJMANIP
+ NAMES iobjmanip iobjmanip.exe
+ HINTS ${__iar_hints}
DOC "The IAR ELF Object Tool")
- find_program(CMAKE_IAR_SYMEXPORT isymexport HINTS ${__iar_hints}
+ find_program(CMAKE_IAR_SYMEXPORT
+ NAMES isymexport
+ HINTS ${__iar_hints}
DOC "The IAR Absolute Symbol Exporter")
mark_as_advanced(CMAKE_IAR_LINKER CMAKE_IAR_ARCHIVE CMAKE_IAR_ELFTOOL CMAKE_IAR_ELFDUMP CMAKE_IAR_OBJMANIP CMAKE_IAR_SYMEXPORT)
@@ -51,9 +63,13 @@ elseif("${CMAKE_${_CMAKE_PROCESSING_LANGUAGE}_COMPILER_ARCHITECTURE_ID}" STREQUA
"${CMAKE_${_CMAKE_PROCESSING_LANGUAGE}_COMPILER_ARCHITECTURE_ID}" STREQUAL "8051")
# Find the "xlink" linker and "xar" archiver:
- find_program(CMAKE_IAR_LINKER xlink HINTS ${__iar_hints}
+ find_program(CMAKE_IAR_LINKER
+ NAMES xlink xlink.exe
+ HINTS ${__iar_hints}
DOC "The IAR XLINK linker")
- find_program(CMAKE_IAR_AR xar HINTS ${__iar_hints}
+ find_program(CMAKE_IAR_AR
+ NAMES xar xar.exe
+ HINTS ${__iar_hints}
DOC "The IAR archiver")
mark_as_advanced(CMAKE_IAR_LINKER CMAKE_IAR_AR)