Skip to content

Commit 244fb21

Browse files
committed
assume has f03 abstract
1 parent 770eedc commit 244fb21

File tree

4 files changed

+1
-37
lines changed

4 files changed

+1
-37
lines changed

cmake/compilers.cmake

-20
Original file line numberDiff line numberDiff line change
@@ -103,26 +103,6 @@ end program"
103103
f08contiguous
104104
)
105105

106-
check_source_compiles(Fortran
107-
"program abst
108-
109-
implicit none
110-
111-
type, abstract :: L1
112-
integer, pointer :: bullseye(:,:)
113-
end type L1
114-
115-
type, extends(L1) :: L2
116-
integer, pointer :: arrow(:)
117-
end type L2
118-
119-
class(L2), allocatable :: obj
120-
121-
end program
122-
"
123-
f03abstract
124-
)
125-
126106
include(${CMAKE_CURRENT_LIST_DIR}/f08submod_bind.cmake)
127107

128108

test/poly_function/CMakeLists.txt

-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
set_property(DIRECTORY PROPERTY LABELS poly_function)
22

3-
if(NOT f03abstract)
4-
message(STATUS "Skipping poly_function since not supported by ${CMAKE_Fortran_COMPILER_ID} ${CMAKE_Fortran_COMPILER_VERSION}")
5-
return()
6-
endif()
7-
83
add_library(poly_fcn
94
${PROJECT_SOURCE_DIR}/src/poly_function/datamod_poly.f90
105
${PROJECT_SOURCE_DIR}/src/poly_function/c_interface_poly.f90

test/poly_type/CMakeLists.txt

-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
set_property(DIRECTORY PROPERTY LABELS poly_type)
22

3-
if(NOT f03abstract)
4-
message(STATUS "Skipping poly_type since not supported by ${CMAKE_Fortran_COMPILER_ID} ${CMAKE_Fortran_COMPILER_VERSION}")
5-
return()
6-
endif()
7-
83
add_library(poly_type_lib
94
${PROJECT_SOURCE_DIR}/src/poly_type/poly_type.f90
105
${PROJECT_SOURCE_DIR}/src/poly_type/base_mod.f90

test/time/CMakeLists.txt

+1-7
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,8 @@ add_library(fortran_clock OBJECT clock.f90)
44
add_executable(cxx_fortran_tictoc main.cpp $<TARGET_OBJECTS:fortran_clock>)
55
add_test(NAME C++_Fortran_tictoc COMMAND cxx_fortran_tictoc)
66

7-
check_symbol_exists(strftime "time.h" HAVE_C_STRFTIME)
87

9-
set(tests strptime)
10-
if(HAVE_C_STRFTIME)
11-
list(APPEND tests strftime)
12-
endif()
13-
14-
foreach(t IN LISTS tests)
8+
foreach(t IN ITEMS strftime strptime)
159
add_executable(${t} ${t}.f90)
1610
add_test(NAME ${t} COMMAND ${t})
1711
endforeach()

0 commit comments

Comments
 (0)