CMakeCXXCompiler.cmake.in 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. set(CMAKE_CXX_COMPILER "@CMAKE_CXX_COMPILER@")
  2. set(CMAKE_CXX_COMPILER_ARG1 "@CMAKE_CXX_COMPILER_ARG1@")
  3. set(CMAKE_CXX_COMPILER_ID "@CMAKE_CXX_COMPILER_ID@")
  4. set(CMAKE_CXX_COMPILER_VERSION "@CMAKE_CXX_COMPILER_VERSION@")
  5. set(CMAKE_CXX_COMPILER_VERSION_INTERNAL "@CMAKE_CXX_COMPILER_VERSION_INTERNAL@")
  6. set(CMAKE_CXX_COMPILER_WRAPPER "@CMAKE_CXX_COMPILER_WRAPPER@")
  7. set(CMAKE_CXX_STANDARD_COMPUTED_DEFAULT "@CMAKE_CXX_STANDARD_COMPUTED_DEFAULT@")
  8. set(CMAKE_CXX_COMPILE_FEATURES "@CMAKE_CXX_COMPILE_FEATURES@")
  9. set(CMAKE_CXX98_COMPILE_FEATURES "@CMAKE_CXX98_COMPILE_FEATURES@")
  10. set(CMAKE_CXX11_COMPILE_FEATURES "@CMAKE_CXX11_COMPILE_FEATURES@")
  11. set(CMAKE_CXX14_COMPILE_FEATURES "@CMAKE_CXX14_COMPILE_FEATURES@")
  12. set(CMAKE_CXX17_COMPILE_FEATURES "@CMAKE_CXX17_COMPILE_FEATURES@")
  13. set(CMAKE_CXX20_COMPILE_FEATURES "@CMAKE_CXX20_COMPILE_FEATURES@")
  14. set(CMAKE_CXX_PLATFORM_ID "@CMAKE_CXX_PLATFORM_ID@")
  15. set(CMAKE_CXX_SIMULATE_ID "@CMAKE_CXX_SIMULATE_ID@")
  16. set(CMAKE_CXX_COMPILER_FRONTEND_VARIANT "@CMAKE_CXX_COMPILER_FRONTEND_VARIANT@")
  17. set(CMAKE_CXX_SIMULATE_VERSION "@CMAKE_CXX_SIMULATE_VERSION@")
  18. @_SET_CMAKE_CXX_COMPILER_ARCHITECTURE_ID@
  19. @SET_MSVC_CXX_ARCHITECTURE_ID@
  20. @SET_CMAKE_XCODE_ARCHS@
  21. set(CMAKE_AR "@CMAKE_AR@")
  22. set(CMAKE_CXX_COMPILER_AR "@CMAKE_CXX_COMPILER_AR@")
  23. set(CMAKE_RANLIB "@CMAKE_RANLIB@")
  24. set(CMAKE_CXX_COMPILER_RANLIB "@CMAKE_CXX_COMPILER_RANLIB@")
  25. set(CMAKE_LINKER "@CMAKE_LINKER@")
  26. set(CMAKE_MT "@CMAKE_MT@")
  27. set(CMAKE_COMPILER_IS_GNUCXX @CMAKE_COMPILER_IS_GNUCXX@)
  28. set(CMAKE_CXX_COMPILER_LOADED 1)
  29. set(CMAKE_CXX_COMPILER_WORKS @CMAKE_CXX_COMPILER_WORKS@)
  30. set(CMAKE_CXX_ABI_COMPILED @CMAKE_CXX_ABI_COMPILED@)
  31. set(CMAKE_COMPILER_IS_MINGW @CMAKE_COMPILER_IS_MINGW@)
  32. set(CMAKE_COMPILER_IS_CYGWIN @CMAKE_COMPILER_IS_CYGWIN@)
  33. if(CMAKE_COMPILER_IS_CYGWIN)
  34. set(CYGWIN 1)
  35. set(UNIX 1)
  36. endif()
  37. set(CMAKE_CXX_COMPILER_ENV_VAR "CXX")
  38. if(CMAKE_COMPILER_IS_MINGW)
  39. set(MINGW 1)
  40. endif()
  41. set(CMAKE_CXX_COMPILER_ID_RUN 1)
  42. set(CMAKE_CXX_SOURCE_FILE_EXTENSIONS C;M;c++;cc;cpp;cxx;m;mm;CPP)
  43. set(CMAKE_CXX_IGNORE_EXTENSIONS inl;h;hpp;HPP;H;o;O;obj;OBJ;def;DEF;rc;RC)
  44. foreach (lang C OBJC OBJCXX)
  45. if (CMAKE_${lang}_COMPILER_ID_RUN)
  46. foreach(extension IN LISTS CMAKE_${lang}_SOURCE_FILE_EXTENSIONS)
  47. list(REMOVE_ITEM CMAKE_CXX_SOURCE_FILE_EXTENSIONS ${extension})
  48. endforeach()
  49. endif()
  50. endforeach()
  51. set(CMAKE_CXX_LINKER_PREFERENCE 30)
  52. set(CMAKE_CXX_LINKER_PREFERENCE_PROPAGATES 1)
  53. # Save compiler ABI information.
  54. set(CMAKE_CXX_SIZEOF_DATA_PTR "@CMAKE_CXX_SIZEOF_DATA_PTR@")
  55. set(CMAKE_CXX_COMPILER_ABI "@CMAKE_CXX_COMPILER_ABI@")
  56. set(CMAKE_CXX_LIBRARY_ARCHITECTURE "@CMAKE_CXX_LIBRARY_ARCHITECTURE@")
  57. if(CMAKE_CXX_SIZEOF_DATA_PTR)
  58. set(CMAKE_SIZEOF_VOID_P "${CMAKE_CXX_SIZEOF_DATA_PTR}")
  59. endif()
  60. if(CMAKE_CXX_COMPILER_ABI)
  61. set(CMAKE_INTERNAL_PLATFORM_ABI "${CMAKE_CXX_COMPILER_ABI}")
  62. endif()
  63. if(CMAKE_CXX_LIBRARY_ARCHITECTURE)
  64. set(CMAKE_LIBRARY_ARCHITECTURE "@CMAKE_CXX_LIBRARY_ARCHITECTURE@")
  65. endif()
  66. set(CMAKE_CXX_CL_SHOWINCLUDES_PREFIX "@CMAKE_CXX_CL_SHOWINCLUDES_PREFIX@")
  67. if(CMAKE_CXX_CL_SHOWINCLUDES_PREFIX)
  68. set(CMAKE_CL_SHOWINCLUDES_PREFIX "${CMAKE_CXX_CL_SHOWINCLUDES_PREFIX}")
  69. endif()
  70. @CMAKE_CXX_COMPILER_CUSTOM_CODE@
  71. @CMAKE_CXX_SYSROOT_FLAG_CODE@
  72. @CMAKE_CXX_OSX_DEPLOYMENT_TARGET_FLAG_CODE@
  73. set(CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES "@CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES@")
  74. set(CMAKE_CXX_IMPLICIT_LINK_LIBRARIES "@CMAKE_CXX_IMPLICIT_LINK_LIBRARIES@")
  75. set(CMAKE_CXX_IMPLICIT_LINK_DIRECTORIES "@CMAKE_CXX_IMPLICIT_LINK_DIRECTORIES@")
  76. set(CMAKE_CXX_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES "@CMAKE_CXX_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES@")