You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey! I'm just curious, why the defaults for the different CMAKE_FIND_ROOT_PATH_MODE_* switches had been changed to BOTH in this (old) change: 96e13cf
Last week I was quite confused, because my iOS cross compilation pulled in a MacOS library installed via brew on my host machine. In comparison, the Android toolchain sets everything to ONLY per default, which makes more sense to me.
I guess BOTH was chosen to better support MacOS and/or Catalyst as a target platform? Could the default value depend on what kind of target we are building for?
Anyway, I'm explicitly setting these values now in my build, which fixes my problem as expected, but I'm still scratching my head over why I would want to use BOTH in the first place when cross compiling. Is it a thing to install iOS libraries globally on the host? (Disclaimer: I'm not a Mac user).
The text was updated successfully, but these errors were encountered:
Yes, using BOTH was indeed a fix to better handle dependencies for macOS, but also since older versions of CMake did have some issues with finding dependencies for simulators etc. Will look into updating or changing the current behaviour since versions older than CMake 3.12 is ancient by now.
Hey! I'm just curious, why the defaults for the different
CMAKE_FIND_ROOT_PATH_MODE_*
switches had been changed toBOTH
in this (old) change: 96e13cfLast week I was quite confused, because my iOS cross compilation pulled in a MacOS library installed via brew on my host machine. In comparison, the Android toolchain sets everything to
ONLY
per default, which makes more sense to me.I guess
BOTH
was chosen to better support MacOS and/or Catalyst as a target platform? Could the default value depend on what kind of target we are building for?Anyway, I'm explicitly setting these values now in my build, which fixes my problem as expected, but I'm still scratching my head over why I would want to use
BOTH
in the first place when cross compiling. Is it a thing to install iOS libraries globally on the host? (Disclaimer: I'm not a Mac user).The text was updated successfully, but these errors were encountered: