mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-17 12:40:40 -06:00
IAR: Fail early in case of IAR ARM 4.XX
This version is not yet supported because it uses xlink unsetad of ilink.
This commit is contained in:
@@ -27,6 +27,10 @@ endif()
|
||||
|
||||
# Architecture specific
|
||||
if("${CMAKE_C_COMPILER_ARCHITECTURE_ID}" STREQUAL "ARM")
|
||||
if(CMAKE_C_COMPILER_VERSION_INTERNAL VERSION_LESS 7)
|
||||
# IAR ARM 4.X uses xlink.exe, detection is not yet implemented
|
||||
message(FATAL_ERROR "CMAKE_C_COMPILER_VERSION = ${CMAKE_C_COMPILER_VERSION} not supported by CMake.")
|
||||
endif()
|
||||
__compiler_iar_ilink(C)
|
||||
__compiler_check_default_language_standard(C 1.10 90 6.10 99 8.10 11)
|
||||
|
||||
|
||||
@@ -34,6 +34,10 @@ endif()
|
||||
|
||||
# Architecture specific
|
||||
if("${CMAKE_CXX_COMPILER_ARCHITECTURE_ID}" STREQUAL "ARM")
|
||||
if(CMAKE_CXX_COMPILER_VERSION_INTERNAL VERSION_LESS 7)
|
||||
# IAR ARM 4.X uses xlink.exe, detection is not yet implemented
|
||||
message(FATAL_ERROR "CMAKE_CXX_COMPILER_VERSION = ${CMAKE_C_COMPILER_VERSION} not supported by CMake.")
|
||||
endif()
|
||||
__compiler_iar_ilink(CXX)
|
||||
__compiler_check_default_language_standard(CXX 6.10 98 8.10 14)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user