Skip to content

Commit d2dc3ec

Browse files
committed
option was only introduced in gfortran 10.0
1 parent 39bb56c commit d2dc3ec

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ if(CMAKE_Fortran_COMPILER_ID STREQUAL GNU)
1414
add_compile_options(-Wconversion-extra)
1515
add_compile_options(-std=f2018)
1616
add_compile_options(-pedantic-errors)
17-
add_compile_options(-fallow-invalid-boz) # ToDo: hack for invalid code
17+
if(CMAKE_Fortran_COMPILER_VERSION VERSION_GREATER_EQUAL 10.0)
18+
add_compile_options(-fallow-invalid-boz) # ToDo: hack for invalid code
19+
endif()
1820
elseif(CMAKE_Fortran_COMPILER_ID STREQUAL Intel)
1921
add_compile_options(-warn declarations,general,usage,interfaces,unused)
2022
add_compile_options(-standard-semantics)

0 commit comments

Comments
 (0)