Skip to content

Commit c90bb21

Browse files
committed
simplify checks
1 parent 71dc8be commit c90bb21

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

test/iso_fortran_binding/CMakeLists.txt

+1-8
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,9 @@ endif()
1212

1313
check_include_file_cxx(span HAVE_SPAN)
1414

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)
2216
add_executable(sampling sampling.cpp sampling.f90)
2317
set_property(TARGET sampling PROPERTY LINKER_LANGUAGE CXX)
24-
target_compile_features(sampling PRIVATE cxx_std_20)
2518

2619
add_test(NAME sampling COMMAND sampling)
2720
endif()

test/iterator/CMakeLists.txt

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
21
add_library(int_iterator OBJECT lib.cpp)
3-
target_compile_features(int_iterator PUBLIC cxx_std_20)
42
target_include_directories(int_iterator PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
53

64
# glitch in arm64 GitHub Actions. Happened on other projects too (h5fortran-mpi)

0 commit comments

Comments
 (0)