Closed Erlkoenig90 closed 3 years ago
Thanks... yes, I think that change is needed. I didn't know about osxcross
, probably an interesting project to try some cross-building approaches in a Mac machine.
Have you tried other recipes from ConanCenter? Are most of them working out-of-the-box?
... and thanks for the PR!
Yes osxcross is awesome, it allows you to e.g. build Mac OS applications on Linux CI servers. Some packages like volk
or openssl
work OOTB. libwebp
and glfw
both need this patch to compile because they use CMake. Unfortunately some other packages (like fribidi
, dependency of pango
) don't work yet because they use Meson and cross-compiling via conan+meson isn't implemented (#4529).
We are trying to provide better integration with Meson (https://github.com/conan-io/conan/pull/7662), but we also need Meson to stabilize a little bit as seen in that PR. Too many things, step by step 😃
Environment Details
Steps to reproduce
Install osxcross on Linux, create a profile with
os=Macos
and attempt to build a CMake-based package such as glfw.Logs
CMake complains that it doesn't know
CMAKE_SYSTEM_NAME=Macos
:I'd suggest translating the
settins.os
valueMacos
toDarwin
in thecmake_flags.py
file like this: