CMakeOBJCXXCompiler.cmake.in 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. set(CMAKE_OBJCXX_COMPILER "@CMAKE_OBJCXX_COMPILER@")
  2. set(CMAKE_OBJCXX_COMPILER_ARG1 "@CMAKE_OBJCXX_COMPILER_ARG1@")
  3. set(CMAKE_OBJCXX_COMPILER_ID "@CMAKE_OBJCXX_COMPILER_ID@")
  4. set(CMAKE_OBJCXX_COMPILER_VERSION "@CMAKE_OBJCXX_COMPILER_VERSION@")
  5. set(CMAKE_OBJCXX_COMPILER_VERSION_INTERNAL "@CMAKE_OBJCXX_COMPILER_VERSION_INTERNAL@")
  6. set(CMAKE_OBJCXX_COMPILER_WRAPPER "@CMAKE_OBJCXX_COMPILER_WRAPPER@")
  7. set(CMAKE_OBJCXX_STANDARD_COMPUTED_DEFAULT "@CMAKE_OBJCXX_STANDARD_COMPUTED_DEFAULT@")
  8. set(CMAKE_OBJCXX_COMPILE_FEATURES "@CMAKE_OBJCXX_COMPILE_FEATURES@")
  9. set(CMAKE_OBJCXX98_COMPILE_FEATURES "@CMAKE_OBJCXX98_COMPILE_FEATURES@")
  10. set(CMAKE_OBJCXX11_COMPILE_FEATURES "@CMAKE_OBJCXX11_COMPILE_FEATURES@")
  11. set(CMAKE_OBJCXX14_COMPILE_FEATURES "@CMAKE_OBJCXX14_COMPILE_FEATURES@")
  12. set(CMAKE_OBJCXX17_COMPILE_FEATURES "@CMAKE_OBJCXX17_COMPILE_FEATURES@")
  13. set(CMAKE_OBJCXX20_COMPILE_FEATURES "@CMAKE_OBJCXX20_COMPILE_FEATURES@")
  14. set(CMAKE_OBJCXX_PLATFORM_ID "@CMAKE_OBJCXX_PLATFORM_ID@")
  15. set(CMAKE_OBJCXX_SIMULATE_ID "@CMAKE_OBJCXX_SIMULATE_ID@")
  16. set(CMAKE_OBJCXX_COMPILER_FRONTEND_VARIANT "@CMAKE_OBJCXX_COMPILER_FRONTEND_VARIANT@")
  17. set(CMAKE_OBJCXX_SIMULATE_VERSION "@CMAKE_OBJCXX_SIMULATE_VERSION@")
  18. @_SET_CMAKE_OBJCXX_COMPILER_ARCHITECTURE_ID@
  19. @SET_CMAKE_XCODE_ARCHS@
  20. set(CMAKE_AR "@CMAKE_AR@")
  21. set(CMAKE_OBJCXX_COMPILER_AR "@CMAKE_OBJCXX_COMPILER_AR@")
  22. set(CMAKE_RANLIB "@CMAKE_RANLIB@")
  23. set(CMAKE_OBJCXX_COMPILER_RANLIB "@CMAKE_OBJCXX_COMPILER_RANLIB@")
  24. set(CMAKE_LINKER "@CMAKE_LINKER@")
  25. set(CMAKE_MT "@CMAKE_MT@")
  26. set(CMAKE_COMPILER_IS_GNUOBJCXX @CMAKE_COMPILER_IS_GNUOBJCXX@)
  27. set(CMAKE_OBJCXX_COMPILER_LOADED 1)
  28. set(CMAKE_OBJCXX_COMPILER_WORKS @CMAKE_OBJCXX_COMPILER_WORKS@)
  29. set(CMAKE_OBJCXX_ABI_COMPILED @CMAKE_OBJCXX_ABI_COMPILED@)
  30. set(CMAKE_OBJCXX_COMPILER_ENV_VAR "OBJCXX")
  31. set(CMAKE_OBJCXX_COMPILER_ID_RUN 1)
  32. set(CMAKE_OBJCXX_SOURCE_FILE_EXTENSIONS M;m;mm)
  33. set(CMAKE_OBJCXX_IGNORE_EXTENSIONS inl;h;hpp;HPP;H;o;O)
  34. if (CMAKE_OBJC_COMPILER_ID_RUN)
  35. foreach(extension IN LISTS CMAKE_OBJC_SOURCE_FILE_EXTENSIONS)
  36. list(REMOVE_ITEM CMAKE_OBJCXX_SOURCE_FILE_EXTENSIONS ${extension})
  37. endforeach()
  38. endif()
  39. foreach (lang C CXX OBJC)
  40. foreach(extension IN LISTS CMAKE_OBJCXX_SOURCE_FILE_EXTENSIONS)
  41. if (CMAKE_${lang}_COMPILER_ID_RUN)
  42. list(REMOVE_ITEM CMAKE_${lang}_SOURCE_FILE_EXTENSIONS ${extension})
  43. endif()
  44. endforeach()
  45. endforeach()
  46. set(CMAKE_OBJCXX_LINKER_PREFERENCE 25)
  47. set(CMAKE_OBJCXX_LINKER_PREFERENCE_PROPAGATES 1)
  48. # Save compiler ABI information.
  49. set(CMAKE_OBJCXX_SIZEOF_DATA_PTR "@CMAKE_OBJCXX_SIZEOF_DATA_PTR@")
  50. set(CMAKE_OBJCXX_COMPILER_ABI "@CMAKE_OBJCXX_COMPILER_ABI@")
  51. set(CMAKE_OBJCXX_LIBRARY_ARCHITECTURE "@CMAKE_OBJCXX_LIBRARY_ARCHITECTURE@")
  52. if(CMAKE_OBJCXX_SIZEOF_DATA_PTR)
  53. set(CMAKE_SIZEOF_VOID_P "${CMAKE_OBJCXX_SIZEOF_DATA_PTR}")
  54. endif()
  55. if(CMAKE_OBJCXX_COMPILER_ABI)
  56. set(CMAKE_INTERNAL_PLATFORM_ABI "${CMAKE_OBJCXX_COMPILER_ABI}")
  57. endif()
  58. if(CMAKE_OBJCXX_LIBRARY_ARCHITECTURE)
  59. set(CMAKE_LIBRARY_ARCHITECTURE "@CMAKE_OBJCXX_LIBRARY_ARCHITECTURE@")
  60. endif()
  61. @CMAKE_OBJCXX_COMPILER_CUSTOM_CODE@
  62. @CMAKE_OBJCXX_SYSROOT_FLAG_CODE@
  63. @CMAKE_OBJCXX_OSX_DEPLOYMENT_TARGET_FLAG_CODE@
  64. set(CMAKE_OBJCXX_IMPLICIT_INCLUDE_DIRECTORIES "@CMAKE_OBJCXX_IMPLICIT_INCLUDE_DIRECTORIES@")
  65. set(CMAKE_OBJCXX_IMPLICIT_LINK_LIBRARIES "@CMAKE_OBJCXX_IMPLICIT_LINK_LIBRARIES@")
  66. set(CMAKE_OBJCXX_IMPLICIT_LINK_DIRECTORIES "@CMAKE_OBJCXX_IMPLICIT_LINK_DIRECTORIES@")
  67. set(CMAKE_OBJCXX_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES "@CMAKE_OBJCXX_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES@")