Cross-compiling from linux to apple
Hello!
Cross-compiling from linux to apple-products runs into the issue #19211 (closed) at least for iOS targets.
The problem seems to be that the .app-bundle handling does not take place if the compiling host isn't apple.
I could fix the problem with the little patch below, simply removing the #if defined(__APPLE__)
.
Another way that could work, I guess, is checking if the compiler-target (CMAKE_SYSTEM_NAME) is something apple-ish - but I didn't test that nor did I look at the rest of the cmake-sources if that would make sense.
PS: This is with cmake 3.23.2 btw.