armv7-ios.cmake 904 B

123456789101112131415161718192021222324252627
  1. # Copyright 2021 The Draco Authors
  2. #
  3. # Licensed under the Apache License, Version 2.0 (the "License"); you may not
  4. # use this file except in compliance with the License. You may obtain a copy of
  5. # the License at
  6. #
  7. # http://www.apache.org/licenses/LICENSE-2.0
  8. #
  9. # Unless required by applicable law or agreed to in writing, software
  10. # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  11. # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  12. # License for the specific language governing permissions and limitations under
  13. # the License.
  14. if(DRACO_CMAKE_TOOLCHAINS_ARMV7_IOS_CMAKE_)
  15. return()
  16. endif()
  17. set(DRACO_CMAKE_TOOLCHAINS_ARMV7_IOS_CMAKE_ 1)
  18. if(XCODE)
  19. message(FATAL_ERROR "This toolchain does not support Xcode.")
  20. endif()
  21. set(CMAKE_SYSTEM_PROCESSOR "armv7")
  22. set(CMAKE_OSX_ARCHITECTURES "armv7")
  23. include("${CMAKE_CURRENT_LIST_DIR}/arm-ios-common.cmake")