Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable Cross-Compilation for iOS #512

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Treata11
Copy link

Greetings,

Cross-compilation for a macOS target was already supported within this framework. To enable iOS compilations, I've introduced a new flag, EMBREE_BUILD_APPLE_FRAMEWORKS, which is set to FALSE by default.

This implementation relies on the iOS-CMake toolchain for building.
My changes should be sufficient; however, the builds fail at the FindTBB.cmake script:

-- Looking for TBB components tbb; ()
CMake Error at common/cmake/FindTBB.cmake:77 (message):
  Unable to find root directory TBB_ROOT-NOTFOUND
Call Stack (most recent call first):
  common/cmake/FindTBB.cmake:462 (rk_tbb_error)
  common/tasking/CMakeLists.txt:33 (find_package)

It's worth mentioning that oneTBB already supports iOS builds with the same approach using iOS-CMake toolchain.

Utilizing iOS-CMake toolchain.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant