diff options
author | Daniel Schürmann <daschuer@mixxx.org> | 2019-04-25 13:04:26 (GMT) |
---|---|---|
committer | Daniel Schürmann <daschuer@mixxx.org> | 2019-04-25 13:25:16 (GMT) |
commit | 0b684524ac657b03ea233e039aad5c8e43a52f2c (patch) | |
tree | 579e35f7d8b1147a20162bd527f731eeb3fc68a6 /Modules/Compiler/IAR-CXX.cmake | |
parent | a7eb2877b87117fb02ae4d3b730361defca4a96d (diff) | |
download | CMake-0b684524ac657b03ea233e039aad5c8e43a52f2c.zip CMake-0b684524ac657b03ea233e039aad5c8e43a52f2c.tar.gz CMake-0b684524ac657b03ea233e039aad5c8e43a52f2c.tar.bz2 |
IAR: Fix building with IAR ARM 6.X
Use the correct version macros and version numbers.
Diffstat (limited to 'Modules/Compiler/IAR-CXX.cmake')
-rw-r--r-- | Modules/Compiler/IAR-CXX.cmake | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/Compiler/IAR-CXX.cmake b/Modules/Compiler/IAR-CXX.cmake index eb27e3c..b338de8 100644 --- a/Modules/Compiler/IAR-CXX.cmake +++ b/Modules/Compiler/IAR-CXX.cmake @@ -8,7 +8,8 @@ if(NOT CMAKE_IAR_CXX_FLAG) if(NOT CMAKE_CXX_COMPILER_VERSION) message(FATAL_ERROR "CMAKE_CXX_COMPILER_VERSION not detected. This should be automatic.") endif() - if(CMAKE_CXX_COMPILER_VERSION_INTERNAL VERSION_GREATER 8) + + if(CMAKE_CXX_COMPILER_VERSION_INTERNAL VERSION_GREATER 7) set(CMAKE_IAR_CXX_FLAG --c++) else() set(CMAKE_IAR_CXX_FLAG --eec++) |