Skip to content

Commit 3995514

Browse files
committed
concept: str arrays
1 parent fe70373 commit 3995514

File tree

8 files changed

+16
-16
lines changed

8 files changed

+16
-16
lines changed

src/CMakeLists.txt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,6 @@ set_target_properties(c_fortran_struct PROPERTIES LINKER_LANGUAGE C)
5353
target_compile_definitions(c_fortran_struct PRIVATE $<$<BOOL:${MSVC}>:_CRT_SECURE_NO_WARNINGS>)
5454
add_test(NAME C_Fortran_struct COMMAND c_fortran_struct)
5555

56-
add_executable(c_fortran_string_array c/string_array_main.c)
57-
target_link_libraries(c_fortran_string_array PRIVATE string_array_fortran)
58-
set_target_properties(c_fortran_string_array PROPERTIES LINKER_LANGUAGE C)
59-
add_test(NAME C_Fortran_string_array COMMAND c_fortran_string_array)
60-
6156
# -- C++ calling Fortran
6257
add_executable(cxx_call_fortran cxx/math_main.cxx)
6358
target_link_libraries(cxx_call_fortran PRIVATE math_fortran)

src/concepts/CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
add_library(string_array_fortran OBJECT string_array_lib.f90)
2+
3+
4+
add_executable(c_fortran_string_array c/string_array_main.c)
5+
target_link_libraries(c_fortran_string_array PRIVATE string_array_fortran)
6+
set_target_properties(c_fortran_string_array PROPERTIES LINKER_LANGUAGE C)
7+
add_test(NAME C_Fortran_string_array COMMAND c_fortran_string_array)

src/concepts/meson.build

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
string_array_fortran = library('string_array_fortran', 'string_array_lib.f90')
2+
3+
4+
c_fortran_string_array = executable('c_fortran_string_array',
5+
sources: files('c/string_array_main.c'),
6+
link_with: string_array_fortran,
7+
link_language: 'fortran'
8+
)
9+
test('C Fortran string array', c_fortran_string_array, timeout: 5)
File renamed without changes.
File renamed without changes.

src/fortran/CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,3 @@ add_library(math_fortran OBJECT math_lib.f90)
33
add_library(error_fortran OBJECT error_lib.f90)
44

55
add_library(struct_fortran OBJECT struct_lib.f90)
6-
7-
add_library(string_array_fortran OBJECT string_array_lib.f90)

src/fortran/meson.build

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,3 @@ math_fortran = library('math_fortran', 'math_lib.f90')
33
error_fortran = library('error_fortran', 'error_lib.f90')
44

55
struct_fortran = library('struct_fortran', 'struct_lib.f90')
6-
7-
string_array_fortran = library('string_array_fortran', 'string_array_lib.f90')

src/meson.build

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,6 @@ c_fortran_struct = executable('c_fortran_struct',
7373
)
7474
test('C Fortran struct', c_fortran_struct, timeout: 5)
7575

76-
c_fortran_string_array = executable('c_fortran_string_array',
77-
sources: files('c/string_array_main.c'),
78-
link_with: string_array_fortran,
79-
link_language: 'fortran'
80-
)
81-
test('C Fortran string array', c_fortran_string_array, timeout: 5)
82-
8376
# -- C++ calling Fortran
8477
cxx_call_fortran = executable('cxx_call_fortran',
8578
sources: files('cxx/math_main.cxx'),

0 commit comments

Comments
 (0)