From 78912a2e76b086ad702d6c2f663143aa4d309c82 Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Tue, 6 Dec 2022 00:03:13 +0530 Subject: cerbero: Unconditionally set CMAKE_SYSTEM_NAME on Windows CMake recipes fail to build on MinGW without it. This was a regression from: https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1027 Part-of: --- cerbero/build/build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cerbero/build/build.py b/cerbero/build/build.py index 9e2ff684..7adaec9c 100644 --- a/cerbero/build/build.py +++ b/cerbero/build/build.py @@ -671,7 +671,7 @@ class CMake (MakefilesBase): elif self.config.target_platform == Platform.IOS: system_name = 'iOS' - if self.config.cross_compiling(): + if self.config.cross_compiling() or self.config.target_platform == Platform.WINDOWS: self.configure_options += [f'-DCMAKE_SYSTEM_NAME={system_name}'] if self.config.target_platform in (Platform.DARWIN, Platform.IOS): -- cgit v1.2.3