sinbad wrote:Heh - I asked him to raise it here because I thought you might have an idea about ways to append the $(EFFECTIVE_PLATFORM_NAME) , since I have a Mac but not so much CMake experience.
The problem is I don't really understand that part. On Linux or Windows I could always manually change the found libs to another platform's SDK, so I don't know exactly why or where this would need to go. And so far I haven't tried to do a cross-platform build with CMake, either, so I don't know what to look out for
I do, however, know that in cmake-gui when configuring for the first time there is an extra setting for cross-compilation where you can select the correct tool chain. I do not know if this would help with this specific issue, but I guess you'll need to do that either way.
From what I could ascertain from the source code, the Xcode generator in CMake might need to be patched to insert that variable after the $(CONFIGURATION) variable when outputting OTHER_LDFLAGS. $(CONFIGURATION) will be Debug, Release, etc. And with the OS X SDKs that is where the linked products end up but Apple added EFFECTIVE_PLATFORM_NAME to differentiate between device and simulator. So you could have directories with binaries in them named: Debug-iphoneos, Debug-iphonesimulator, Release-iphoneos, Release-iphonesimulator, etc.
So ya. That's all that I've been able to figure out and now I'm stumped with this issue.