We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d2dc3ec commit 285e3a1Copy full SHA for 285e3a1
CMakeLists.txt
@@ -12,8 +12,12 @@ if(CMAKE_Fortran_COMPILER_ID STREQUAL GNU)
12
add_compile_options(-Wextra)
13
add_compile_options(-Wimplicit-procedure)
14
add_compile_options(-Wconversion-extra)
15
- add_compile_options(-std=f2018)
16
add_compile_options(-pedantic-errors)
+ if(CMAKE_Fortran_COMPILER_VERSION VERSION_GREATER_EQUAL 8.0)
17
+ add_compile_options(-std=f2008ts)
18
+ else()
19
+ add_compile_options(-std=f2018)
20
+ endif()
21
if(CMAKE_Fortran_COMPILER_VERSION VERSION_GREATER_EQUAL 10.0)
22
add_compile_options(-fallow-invalid-boz) # ToDo: hack for invalid code
23
endif()
0 commit comments