cmake: Fix PKG_CONFIG_PATH formatting for Windows cross-builds

The PKG_CONFIG_PATH use of semicolons must match the host system, not
the build system. This fixes calling pkg-config for Windows to Android
cross builds.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8768>
This commit is contained in:
L. E. Segovia 2025-04-03 09:02:59 -03:00 committed by GStreamer Marge Bot
parent 8af086038a
commit 8453993afc

View File

@ -88,7 +88,7 @@ set(GStreamer_USE_STATIC_LIBS OFF)
endif()
# Set the environment for pkg-config
if (WIN32)
if (CMAKE_HOST_SYSTEM_NAME STREQUAL "Windows")
set(ENV{PKG_CONFIG_PATH} "${GStreamer_ROOT_DIR}/lib/pkgconfig;${GStreamer_ROOT_DIR}/lib/gstreamer-1.0/pkgconfig;${GStreamer_ROOT_DIR}/lib/gio/modules/pkgconfig")
else()
set(ENV{PKG_CONFIG_PATH} "${GStreamer_ROOT_DIR}/lib/pkgconfig:${GStreamer_ROOT_DIR}/lib/gstreamer-1.0/pkgconfig:${GStreamer_ROOT_DIR}/lib/gio/modules/pkgconfig")