meson.build: use join_paths() on prefix
authorHåvard Graff <havard.graff@gmail.com>
Tue, 10 Oct 2017 13:44:51 +0000 (15:44 +0200)
committerTim-Philipp Müller <tim@centricular.com>
Fri, 24 Nov 2017 12:40:33 +0000 (13:40 +0100)
So that "/" are correct on Windows and the paths in
the .pc files are like C:/some/where and not
C:\some\where.

pkgconfig/meson.build

index 23aa5d0..71f38b9 100644 (file)
@@ -1,6 +1,6 @@
 pkgconf = configuration_data()
 
-pkgconf.set('prefix', get_option('prefix'))
+pkgconf.set('prefix', join_paths(get_option('prefix')))
 pkgconf.set('exec_prefix', '${prefix}')
 pkgconf.set('libdir', '${prefix}/@0@'.format(get_option('libdir')))
 pkgconf.set('includedir', '${prefix}/@0@'.format(get_option('includedir')))