meson: Always wrap "prefix" option with join_paths() to make Windows happy
authorSeungha Yang <seungha@centricular.com>
Tue, 15 Sep 2020 19:30:40 +0000 (04:30 +0900)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Thu, 1 Oct 2020 19:19:39 +0000 (19:19 +0000)
Both "\" and "/" separators are allowed on Windows but the problem
is that "\" is not converted to "\\" in this case.
It will result to unknown/unrecognized character escape sequence.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/818>

meson.build

index 1824b0d..5d1d329 100644 (file)
@@ -325,7 +325,7 @@ else
       get_option('libdir'), 'gio/modules'))
     core_conf.set_quoted('GIO_LIBDIR', join_paths(get_option('prefix'),
       get_option('libdir')))
-    core_conf.set_quoted('GIO_PREFIX', get_option('prefix'))
+    core_conf.set_quoted('GIO_PREFIX', join_paths(get_option('prefix')))
 endif
 
 configinc = include_directories('.')