File tree Expand file tree Collapse file tree 4 files changed +1
-37
lines changed Expand file tree Collapse file tree 4 files changed +1
-37
lines changed Original file line number Diff line number Diff line change @@ -103,26 +103,6 @@ end program"
103103f08contiguous
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-
126106include (${CMAKE_CURRENT_LIST_DIR} /f08submod_bind.cmake)
127107
128108
Original file line number Diff line number Diff line change 11set_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-
83add_library (poly_fcn
94${PROJECT_SOURCE_DIR} /src/poly_function/datamod_poly.f90
105${PROJECT_SOURCE_DIR} /src/poly_function/c_interface_poly.f90
Original file line number Diff line number Diff line change 11set_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-
83add_library (poly_type_lib
94${PROJECT_SOURCE_DIR} /src/poly_type/poly_type.f90
105${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)
44add_executable (cxx_fortran_tictoc main.cpp $<TARGET_OBJECTS:fortran_clock>)
55add_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} )
1711endforeach ()
You can’t perform that action at this time.
0 commit comments