forked from OctaForge/libostd
rename generated tests executables to prevent conflict
parent
256a35697a
commit
5091022e4a
|
@ -25,18 +25,18 @@ libostd_tests_src = []
|
||||||
|
|
||||||
foreach test_name: libostd_tests_names
|
foreach test_name: libostd_tests_names
|
||||||
libostd_tests_src += custom_target('test_' + test_name,
|
libostd_tests_src += custom_target('test_' + test_name,
|
||||||
output: [test_name + '.cc'],
|
output: ['test_' + test_name + '.cc'],
|
||||||
install: false,
|
install: false,
|
||||||
command: [
|
command: [
|
||||||
libostd_gen_test_exe, test_name,
|
libostd_gen_test_exe, test_name,
|
||||||
join_paths(meson.current_build_dir(), test_name + '.cc')
|
join_paths(meson.current_build_dir(), 'test_' + test_name + '.cc')
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
endforeach
|
endforeach
|
||||||
|
|
||||||
test_target = []
|
test_target = []
|
||||||
foreach test_idx: libostd_tests_indices
|
foreach test_idx: libostd_tests_indices
|
||||||
test_target += executable(libostd_tests_names[test_idx],
|
test_target += executable('test_' + libostd_tests_names[test_idx],
|
||||||
[libostd_tests_src[test_idx]],
|
[libostd_tests_src[test_idx]],
|
||||||
dependencies: libostd,
|
dependencies: libostd,
|
||||||
include_directories: libostd_includes,
|
include_directories: libostd_includes,
|
||||||
|
|
Loading…
Reference in New Issue