alecthomas / entityx

EntityX - A fast, type-safe C++ Entity-Component system
MIT License
2.21k stars 295 forks source link

Cross compile with target_complie_feature error #221

Closed deflinhec closed 5 years ago

deflinhec commented 5 years ago

Trying to build ios libraries with CMAKE_TOOLCHAIN_FILE with ios-cmake generated error below

CMake Error at entityx/CMakeLists.txt:156 (target_compile_features):
  target_compile_features no known features for CXX compiler

  "AppleClang"

  version 10.0.0.10001145.
deflinhec commented 5 years ago

I’ve noticed that traget_compile_features only support AppleClang 4.4-9.2, so I switch to AppleClang 9.0 but it didn’t help.

deflinhec commented 5 years ago

Problem solved! It seems to be ios-cmake's problem. Considering this fix on another cmake ios-toolchain at ceres-solver