summaryrefslogtreecommitdiffstats
path: root/Modules/Compiler/IAR-C.cmake
diff options
context:
space:
mode:
authorDaniel Schürmann <daschuer@mixxx.org>2019-04-25 13:04:26 (GMT)
committerDaniel Schürmann <daschuer@mixxx.org>2019-04-25 13:25:16 (GMT)
commit0b684524ac657b03ea233e039aad5c8e43a52f2c (patch)
tree579e35f7d8b1147a20162bd527f731eeb3fc68a6 /Modules/Compiler/IAR-C.cmake
parenta7eb2877b87117fb02ae4d3b730361defca4a96d (diff)
downloadCMake-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-C.cmake')
-rw-r--r--Modules/Compiler/IAR-C.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/Compiler/IAR-C.cmake b/Modules/Compiler/IAR-C.cmake
index cb10020..d19b502 100644
--- a/Modules/Compiler/IAR-C.cmake
+++ b/Modules/Compiler/IAR-C.cmake
@@ -10,7 +10,7 @@ endif()
set(CMAKE_C_EXTENSION_COMPILE_OPTION -e)
-if(CMAKE_CXX_COMPILER_VERSION_INTERNAL VERSION_GREATER 7)
+if(CMAKE_C_COMPILER_VERSION_INTERNAL VERSION_GREATER 7)
set(CMAKE_C90_STANDARD_COMPILE_OPTION --c89)
set(CMAKE_C90_EXTENSION_COMPILE_OPTION --c89 -e)
set(CMAKE_C99_STANDARD_COMPILE_OPTION "")
@@ -20,7 +20,7 @@ elseif()
set(CMAKE_C90_EXTENSION_COMPILE_OPTION -e)
endif()
-if(CMAKE_CXX_COMPILER_VERSION_INTERNAL VERSION_GREATER 8)
+if(CMAKE_C_COMPILER_VERSION_INTERNAL VERSION_GREATER 8)
set(CMAKE_C11_STANDARD_COMPILE_OPTION "")
set(CMAKE_C11_EXTENSION_COMPILE_OPTION -e)
endif()