File tree 4 files changed +1
-37
lines changed
4 files changed +1
-37
lines changed Original file line number Diff line number Diff line change @@ -103,26 +103,6 @@ end program"
103
103
f08contiguous
104
104
)
105
105
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
-
126
106
include (${CMAKE_CURRENT_LIST_DIR} /f08submod_bind.cmake)
127
107
128
108
Original file line number Diff line number Diff line change 1
1
set_property (DIRECTORY PROPERTY LABELS poly_function)
2
2
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
-
8
3
add_library (poly_fcn
9
4
${PROJECT_SOURCE_DIR} /src/poly_function/datamod_poly.f90
10
5
${PROJECT_SOURCE_DIR} /src/poly_function/c_interface_poly.f90
Original file line number Diff line number Diff line change 1
1
set_property (DIRECTORY PROPERTY LABELS poly_type)
2
2
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
-
8
3
add_library (poly_type_lib
9
4
${PROJECT_SOURCE_DIR} /src/poly_type/poly_type.f90
10
5
${PROJECT_SOURCE_DIR} /src/poly_type/base_mod.f90
Original file line number Diff line number Diff line change @@ -4,14 +4,8 @@ add_library(fortran_clock OBJECT clock.f90)
4
4
add_executable (cxx_fortran_tictoc main.cpp $<TARGET_OBJECTS:fortran_clock>)
5
5
add_test (NAME C++_Fortran_tictoc COMMAND cxx_fortran_tictoc)
6
6
7
- check_symbol_exists(strftime "time.h" HAVE_C_STRFTIME)
8
7
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)
15
9
add_executable (${t} ${t} .f90)
16
10
add_test (NAME ${t} COMMAND ${t} )
17
11
endforeach ()
You can’t perform that action at this time.
0 commit comments