Skip to content
Snippets Groups Projects
Commit 5b44cd0f authored by Izzard, Robert Dr (Maths & Physics)'s avatar Izzard, Robert Dr (Maths & Physics)
Browse files

add checks on include dirs to make sure they exist

add script to do the above
parent f7e9e413
No related branches found
No related tags found
No related merge requests found
......@@ -538,12 +538,14 @@ _include_search_paths = [
'/usr/local/include',
]
foreach idir : _include_search_paths
inc_arg = idir
_Inc_arg = '-I' + idir
if not found and compiler.has_header('gsl/gsl_blas.h',
args: _Inc_arg)
my_incdirs += [inc_arg]
found = true
if run_command('sh','-c','meson/directory_exists.sh',idir).returncode() == 0
inc_arg = idir
_Inc_arg = '-I' + idir
if not found and compiler.has_header('gsl/gsl_blas.h',
args: _Inc_arg)
my_incdirs += [inc_arg]
found = true
endif
endif
endforeach
......
#!/bin/bash
# return 0 if directory exists, 1 otherwise
if [[ -d "$1" ]]; then
exit 0;
else
exit 1;
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment