diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2022-12-06 00:03:13 +0530 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2022-12-07 14:29:37 +0000 |
commit | 500dabdc86af5123970c8c3a6904fede9a0389b0 (patch) | |
tree | 1482a2bbd7f50dad471bd3ff6f314842f793de60 | |
parent | 15a60faa256012953c328211b8a0440ff1dfa1b2 (diff) |
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: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1041>
-rw-r--r-- | cerbero/build/build.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cerbero/build/build.py b/cerbero/build/build.py index bdc8d5a7..7e6302b9 100644 --- a/cerbero/build/build.py +++ b/cerbero/build/build.py @@ -679,7 +679,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): |