Skip to content

Commit 15dbd52

Browse files
Handle NAG compiler (ecmwf#102)
* Handle NAG compiler --------- Co-authored-by: Willem Deconinck <willem.deconinck@ecmwf.int>
1 parent 3dc24ee commit 15dbd52

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

‎cmake/ecbuild_compile_options.cmake‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
#
5353
# ecbuild_define_compile_options( NAME <name> DESCRIPTION <description> LANGUAGE <language> [ REQUIRED ]
5454
# [ GNU <values> ] [ NEC <values> ] [ NVHPC <values> ] [ Intel <values> ]
55-
# [ IntelLLVM <values> ] [ Cray <values> ] [ Flang <values> ] )
55+
# [ IntelLLVM <values> ] [ Cray <values> ] [ Flang <values> ] [ NAG <values> ] )
5656
#
5757
# Options
5858
# -------
@@ -87,6 +87,9 @@
8787
# Flang <values> : optional
8888
# The values for the compile option for Flang compiler and given LANGUAGE
8989
#
90+
# NAG <values> : optional
91+
# The values for the compile option for NAG compiler and given LANGUAGE
92+
#
9093
# REQUIRED : optional
9194
# fail if the compile_options for the current compiler are not implemented,
9295
# to avoid nasty surpises
@@ -95,7 +98,7 @@
9598

9699

97100
function( ecbuild_define_compile_options )
98-
set( supported_compiler_ids GNU NEC NVHPC Intel IntelLLVM Cray Flang )
101+
set( supported_compiler_ids GNU NEC NVHPC Intel IntelLLVM Cray Flang NAG )
99102

100103
set( options REQUIRED )
101104
set( single_value_args NAME DESCRIPTION LANGUAGE )
@@ -153,6 +156,7 @@ ecbuild_define_compile_options(
153156
IntelLLVM # empty (default)
154157
Cray # empty (default)
155158
Flang # empty (default)
159+
NAG # empty (default)
156160
)
157161

158162
### ECBUILD_Fortran_COMPILE_OPTIONS_REAL8
@@ -169,6 +173,7 @@ ecbuild_define_compile_options(
169173
IntelLLVM -r8
170174
Cray -sreal64
171175
Flang -fdefault-real-8
176+
NAG -double
172177
)
173178

174179
### ECBUILD_Fortran_COMPILE_OPTIONS_CHECK_BOUNDS

0 commit comments

Comments
 (0)