Skip to content

Commit 58ae777

Browse files
committed
meson include dir syntax
1 parent abc4479 commit 58ae777

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/cxx/meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
math_cxx = library('math_cxx', 'math_lib.cxx')
22

33
struct_cxx = library('struct_cxx', 'struct_lib.cxx',
4-
include_directories: meson.current_source_dir() / '../c')
4+
include_directories: '../c')
55

66
error_cxx = library('error_cxx', 'error_lib.cxx')

src/meson.build

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ test('Fortran C++ math', fortran_cxx_math, timeout: 5)
1414

1515
fortran_cxx_struct = executable('fortran_cxx_struct',
1616
sources: files('fortran/struct_main.f90'),
17-
include_directories: meson.current_source_dir() / 'c',
17+
include_directories: 'c',
1818
link_with: struct_cxx
1919
)
2020
test('Fortran C++ struct', fortran_cxx_struct, timeout: 5)
@@ -89,7 +89,7 @@ test('C++ Fortran error', cxx_fortran_error,
8989

9090
cxx_fortran_struct = executable('cxx_fortran_struct',
9191
sources: files('cxx/struct_main.cxx'),
92-
include_directories: meson.current_source_dir() / 'c',
92+
include_directories: 'c',
9393
link_with: struct_fortran,
9494
link_language: 'fortran'
9595
)

0 commit comments

Comments
 (0)