Skip to content

Commit 022fcf7

Browse files
committed
allow non-standard conforming code only selectively where needed
1 parent a206e25 commit 022fcf7

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/CMakeLists.txt

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ set(SRC
3131
stdlib_experimental_ascii.f90
3232
stdlib_experimental_error.f90
3333
stdlib_experimental_kinds.f90
34-
stdlib_experimental_system.F90
34+
stdlib_experimental_system.F90 # Captital extension for a reason?
3535
${outFiles}
3636
)
3737

@@ -53,6 +53,13 @@ endif()
5353

5454
add_subdirectory(tests)
5555

56+
# relax standard checks
57+
if(CMAKE_Fortran_COMPILER_ID STREQUAL GNU)
58+
if(CMAKE_Fortran_COMPILER_VERSION VERSION_GREATER_EQUAL 10.0)
59+
set_source_files_properties("stdlib_experimental_ascii.f90" PROPERTIES COMPILE_FLAGS "-fallow-invalid-boz")
60+
endif()
61+
endif()
62+
5663
install(TARGETS fortran_stdlib
5764
RUNTIME DESTINATION bin
5865
ARCHIVE DESTINATION lib

0 commit comments

Comments
 (0)