diff options
author | Daniel Schürmann <daschuer@mixxx.org> | 2018-09-10 11:44:26 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2018-09-10 13:03:47 (GMT) |
commit | a26ebb894b192b0156f6a0802ecc4b1f872fcff3 (patch) | |
tree | d1e96a56070c5eb382e52d08db02230a19218d18 /Modules/Compiler/IAR-ASM.cmake | |
parent | cc5bac458b85081f813a2c169fda104f59233c37 (diff) | |
download | CMake-a26ebb894b192b0156f6a0802ecc4b1f872fcff3.zip CMake-a26ebb894b192b0156f6a0802ecc4b1f872fcff3.tar.gz CMake-a26ebb894b192b0156f6a0802ecc4b1f872fcff3.tar.bz2 |
IAR: Abort if compiler version or target architecture is not detected
If these are not detected then we cannot support the IAR compiler.
Fail early with an explicit message instead of silently proceeding
and getting strange errors.
Issue: #18333
Diffstat (limited to 'Modules/Compiler/IAR-ASM.cmake')
-rw-r--r-- | Modules/Compiler/IAR-ASM.cmake | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/Compiler/IAR-ASM.cmake b/Modules/Compiler/IAR-ASM.cmake index 651bc3a..e12bfd1 100644 --- a/Modules/Compiler/IAR-ASM.cmake +++ b/Modules/Compiler/IAR-ASM.cmake @@ -18,4 +18,6 @@ elseif("${CMAKE_ASM${ASM_DIALECT}_COMPILER_ARCHITECTURE_ID}" STREQUAL "AVR") __compiler_iar_AVR(ASM) set(CMAKE_ASM_SOURCE_FILE_EXTENSIONS s90;asm;msa) +else() + message(FATAL_ERROR "CMAKE_ASM${ASM_DIALECT}_COMPILER_ARCHITECTURE_ID not detected as \"AVR\" or \"ARM\". This should be automatic.") endif() |