File tree Expand file tree Collapse file tree 2 files changed +1
-10
lines changed Expand file tree Collapse file tree 2 files changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -12,16 +12,9 @@ endif()
12
12
13
13
check_include_file_cxx (span HAVE_SPAN )
14
14
15
- if (NOT HAVE_SPAN OR
16
- (CMAKE_Fortran_COMPILER_ID STREQUAL "GNU" AND
17
- CMAKE_Fortran_COMPILER_VERSION VERSION_LESS 12 ))
18
- set (sampling_old TRUE )
19
- endif ()
20
-
21
- if (NOT sampling_old )
15
+ if (HAVE_SPAN )
22
16
add_executable (sampling sampling.cpp sampling.f90 )
23
17
set_property (TARGET sampling PROPERTY LINKER_LANGUAGE CXX )
24
- target_compile_features (sampling PRIVATE cxx_std_20 )
25
18
26
19
add_test (NAME sampling COMMAND sampling )
27
20
endif ()
Original file line number Diff line number Diff line change 1
-
2
1
add_library (int_iterator OBJECT lib.cpp )
3
- target_compile_features (int_iterator PUBLIC cxx_std_20 )
4
2
target_include_directories (int_iterator PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} )
5
3
6
4
# glitch in arm64 GitHub Actions. Happened on other projects too (h5fortran-mpi)
You can’t perform that action at this time.
0 commit comments