Skip to content

Commit

Permalink
Better meson error on windows when libraries versions are not correct (
Browse files Browse the repository at this point in the history
…#3178)

* try except

* proper meson error when problem of version
  • Loading branch information
bilhox authored Oct 17, 2024
1 parent 9218eb2 commit 5af69f9
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,18 @@ if plat == 'win' and host_machine.cpu_family().startswith('x86')
check: true,
)

foreach lib : dlls
if not fs.exists(lib)
error(f'''
File "@lib@" does not exist.
Please try to delete "prebuilt_downloads/", "prebuilt-x64/" and "prebuilt-x86/" directories, and retry the installation.
''')
endif
endforeach

# put dlls in root of install
install_data(dlls, install_dir: pg_dir, install_tag: 'pg-tag')

else
bases = ['/usr/local', '/usr', '/opt/homebrew', '/opt/local']
foreach inc_dir : bases
Expand Down

0 comments on commit 5af69f9

Please sign in to comment.