summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorNorbert Lange <norbert.lange@andritz.com>2017-07-26 10:39:11 (GMT)
committerBrad King <brad.king@kitware.com>2017-08-03 13:56:36 (GMT)
commit168b42d2475abed82ded69940cf5fdca585226e8 (patch)
tree713cc208222aaf223e91df48b2cdb66ee3a8536b /Modules
parentf911582423d39b1a6933ff4c38ee6d273f530300 (diff)
downloadCMake-168b42d2475abed82ded69940cf5fdca585226e8.zip
CMake-168b42d2475abed82ded69940cf5fdca585226e8.tar.gz
CMake-168b42d2475abed82ded69940cf5fdca585226e8.tar.bz2
IAR: Enable extensions by default
Set the variable added by commit a2112257 (Add infrastructure to use language extensions without any standard, 2017-06-29) for IAR. This was accidentally left out of commit d8e6cd9e (IAR: Improve support for IAR ARM Compiler, 2017-06-15).
Diffstat (limited to 'Modules')
-rw-r--r--Modules/Compiler/IAR-C.cmake3
-rw-r--r--Modules/Compiler/IAR-CXX.cmake2
2 files changed, 5 insertions, 0 deletions
diff --git a/Modules/Compiler/IAR-C.cmake b/Modules/Compiler/IAR-C.cmake
index 48a9a16..55e019e 100644
--- a/Modules/Compiler/IAR-C.cmake
+++ b/Modules/Compiler/IAR-C.cmake
@@ -5,6 +5,9 @@ include(Compiler/CMakeCommonCompilerMacros)
# The toolchains for ARM and AVR are quite different:
if("${CMAKE_C_COMPILER_ARCHITECTURE_ID}" STREQUAL "ARM")
+
+ set(CMAKE_C_EXTENSION_COMPILE_OPTION -e)
+
set(CMAKE_C90_STANDARD_COMPILE_OPTION "")
set(CMAKE_C90_EXTENSION_COMPILE_OPTION -e)
diff --git a/Modules/Compiler/IAR-CXX.cmake b/Modules/Compiler/IAR-CXX.cmake
index 7a6ba2b..8d86100 100644
--- a/Modules/Compiler/IAR-CXX.cmake
+++ b/Modules/Compiler/IAR-CXX.cmake
@@ -17,6 +17,8 @@ if("${CMAKE_CXX_COMPILER_ARCHITECTURE_ID}" STREQUAL "ARM")
endif()
endif()
+ set(CMAKE_CXX_EXTENSION_COMPILE_OPTION -e)
+
set(CMAKE_CXX98_STANDARD_COMPILE_OPTION "")
set(CMAKE_CXX98_EXTENSION_COMPILE_OPTION -e)