summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeFindBinUtils.cmake
diff options
context:
space:
mode:
authorFelipe Torrezan <felipe.torrezan@iar.com>2023-05-22 10:08:33 (GMT)
committerFelipe Torrezan <felipe.torrezan@iar.com>2023-05-22 10:08:33 (GMT)
commit57f22c6a3d37fff5ef0e1020b745417c3b573607 (patch)
treeb6b4f0aebfb734ed6837fb6b465eaaa854097ecf /Modules/CMakeFindBinUtils.cmake
parentdabba15172012f4497c96eadbf69684fc2f597ee (diff)
downloadCMake-57f22c6a3d37fff5ef0e1020b745417c3b573607.zip
CMake-57f22c6a3d37fff5ef0e1020b745417c3b573607.tar.gz
CMake-57f22c6a3d37fff5ef0e1020b745417c3b573607.tar.bz2
IAR:Fix version detection for xlinkavr
- The comparison for minimum version for detecting the newer xlinkavr was encompassing V7.30.5, which uses the old `xlink` without target suffix.
Diffstat (limited to 'Modules/CMakeFindBinUtils.cmake')
-rw-r--r--Modules/CMakeFindBinUtils.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/CMakeFindBinUtils.cmake b/Modules/CMakeFindBinUtils.cmake
index 604d25c..461839a 100644
--- a/Modules/CMakeFindBinUtils.cmake
+++ b/Modules/CMakeFindBinUtils.cmake
@@ -135,7 +135,7 @@ elseif("x${CMAKE_${_CMAKE_PROCESSING_LANGUAGE}_COMPILER_ID}" MATCHES "^xIAR$")
elseif("${CMAKE_${_CMAKE_PROCESSING_LANGUAGE}_COMPILER_ARCHITECTURE_ID}" IN_LIST _CMAKE_IAR_XTOOLS)
__append_IAR_tool(AR "xar")
if("${CMAKE_${_CMAKE_PROCESSING_LANGUAGE}_COMPILER_ARCHITECTURE_ID}" STREQUAL "AVR" AND
- (CMAKE_${_CMAKE_PROCESSING_LANGUAGE}_COMPILER_VERSION VERSION_GREATER 7))
+ (CMAKE_${_CMAKE_PROCESSING_LANGUAGE}_COMPILER_VERSION VERSION_GREATER_EQUAL 8))
# IAR UBROF Linker V8.10+ for Microchip AVR is `xlinkavr`
__append_IAR_tool(LINKER "xlink${_CMAKE_IAR_LOWER_ARCHITECTURE_ID}")
else()