mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04:00
meson: Use assert() to validate the prefix
Signed-off-by: Arnaud Rebillout <arnaud.rebillout@collabora.com>
This commit is contained in:
parent
edd9c60984
commit
2fea4c7c01
1 changed files with 1 additions and 3 deletions
|
|
@ -31,9 +31,7 @@ libversion = '@0@.@1@.0'.format(soversion, pa_version_minor.to_int() * 100 + pa_
|
||||||
# Paths
|
# Paths
|
||||||
|
|
||||||
prefix = get_option('prefix')
|
prefix = get_option('prefix')
|
||||||
if not prefix.startswith('/')
|
assert(prefix.startswith('/'), 'Prefix is not absolute: "@0@"'.format(prefix))
|
||||||
error('Prefix is not absolute: "@0@"'.format(prefix))
|
|
||||||
endif
|
|
||||||
|
|
||||||
bindir = join_paths(prefix, get_option('bindir'))
|
bindir = join_paths(prefix, get_option('bindir'))
|
||||||
libdir = join_paths(prefix, get_option('libdir'))
|
libdir = join_paths(prefix, get_option('libdir'))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue