summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2022-12-06 00:03:13 +0530
committerNirbheek Chauhan <nirbheek@centricular.com>2022-12-06 00:03:13 +0530
commit78912a2e76b086ad702d6c2f663143aa4d309c82 (patch)
treec8b409f45aa8645e29eaff41ff5a2eeb53a0e9e9
parent8ac9709fc4071386bd4b2817830b1b76181a4bb5 (diff)
cerbero: Unconditionally set CMAKE_SYSTEM_NAME on Windows1.21.3
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/1036>
-rw-r--r--cerbero/build/build.py2
1 files changed, 1 insertions, 1 deletions
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):