Skip to content
Snippets Groups Projects
Commit 6310352d authored by MichelJuillard's avatar MichelJuillard
Browse files

replace meson copyfile

parent ec772c9e
No related branches found
No related tags found
No related merge requests found
......@@ -13,8 +13,13 @@ flex_src = flex_gen.process('macro/Tokenizer.ll', 'DynareFlex.ll')
# flex is typically provided by the system of the build machine)
if not cpp_compiler.has_header('FlexLexer.h')
message('FlexLexer.h cannot be found by the compiler, it will be manually copied to the build directory')
copy = find_program('copy.py')
fs = import('fs')
flexlexer_h = fs.copyfile(fs.parent(fs.parent(flex_exe.full_path())) / 'include' / 'FlexLexer.h', 'FlexLexer.h')
run_command(
copy,
fs.parent(fs.parent(flex_exe.full_path())) / 'include' / 'FlexLexer.h',
'FlexLexer.h'
)
else
flexlexer_h = []
endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment