diff --git a/src/meson.build b/src/meson.build index 63c10ba87794333557635b4fccda8de948f102b0..516171426c11ac9d1ee3f1da1f1604a2d8dd5ab8 100644 --- a/src/meson.build +++ b/src/meson.build @@ -16,12 +16,11 @@ if not cpp_compiler.has_header('FlexLexer.h') copy = find_program('copy.py') fs = import('fs') run_command( - copy, - fs.parent(fs.parent(flex_exe.full_path())) / 'include' / 'FlexLexer.h', - 'FlexLexer.h' - ) -# flexlexer_h = '../../src/FlexLexer.h' - flexlexer_h = 'FlexLexer.h' + copy, + fs.parent(fs.parent(flex_exe.full_path())) / 'include' / 'FlexLexer.h', + 'FlexLexer.h' + ) + flexlexer_h = [] else flexlexer_h = [] endif @@ -64,7 +63,7 @@ preprocessor_src = [ 'ComputingTasks.cc', 'macro/Environment.cc', 'macro/Expressions.cc', 'macro/Directives.cc' ] - + executable('dynare-preprocessor', preprocessor_src, flex_src, flexlexer_h, bison_src, include_directories : preprocessor_incdir, dependencies : boost_dep, link_args : [],