Merge topic 'cxx-checks-tolerate-unused-arguments'
[kiteware-cmake.git] / Modules / CMakeCCompiler.cmake.in
blobdf2a06023999e27344019d2dd0e9f6cabddfdf82
1 set(CMAKE_C_COMPILER "@CMAKE_C_COMPILER@")
2 set(CMAKE_C_COMPILER_ARG1 "@CMAKE_C_COMPILER_ARG1@")
3 set(CMAKE_C_COMPILER_ID "@CMAKE_C_COMPILER_ID@")
4 set(CMAKE_C_COMPILER_VERSION "@CMAKE_C_COMPILER_VERSION@")
5 set(CMAKE_C_COMPILER_VERSION_INTERNAL "@CMAKE_C_COMPILER_VERSION_INTERNAL@")
6 set(CMAKE_C_COMPILER_WRAPPER "@CMAKE_C_COMPILER_WRAPPER@")
7 set(CMAKE_C_STANDARD_COMPUTED_DEFAULT "@CMAKE_C_STANDARD_COMPUTED_DEFAULT@")
8 set(CMAKE_C_EXTENSIONS_COMPUTED_DEFAULT "@CMAKE_C_EXTENSIONS_COMPUTED_DEFAULT@")
9 set(CMAKE_C_COMPILE_FEATURES "@CMAKE_C_COMPILE_FEATURES@")
10 set(CMAKE_C90_COMPILE_FEATURES "@CMAKE_C90_COMPILE_FEATURES@")
11 set(CMAKE_C99_COMPILE_FEATURES "@CMAKE_C99_COMPILE_FEATURES@")
12 set(CMAKE_C11_COMPILE_FEATURES "@CMAKE_C11_COMPILE_FEATURES@")
13 set(CMAKE_C17_COMPILE_FEATURES "@CMAKE_C17_COMPILE_FEATURES@")
14 set(CMAKE_C23_COMPILE_FEATURES "@CMAKE_C23_COMPILE_FEATURES@")
16 set(CMAKE_C_PLATFORM_ID "@CMAKE_C_PLATFORM_ID@")
17 set(CMAKE_C_SIMULATE_ID "@CMAKE_C_SIMULATE_ID@")
18 set(CMAKE_C_COMPILER_FRONTEND_VARIANT "@CMAKE_C_COMPILER_FRONTEND_VARIANT@")
19 set(CMAKE_C_SIMULATE_VERSION "@CMAKE_C_SIMULATE_VERSION@")
20 @_SET_CMAKE_C_COMPILER_ARCHITECTURE_ID@
21 @_SET_CMAKE_C_COMPILER_SYSROOT@
22 @SET_MSVC_C_ARCHITECTURE_ID@
23 @SET_CMAKE_XCODE_ARCHS@
24 set(CMAKE_AR "@CMAKE_AR@")
25 set(CMAKE_C_COMPILER_AR "@CMAKE_C_COMPILER_AR@")
26 set(CMAKE_RANLIB "@CMAKE_RANLIB@")
27 set(CMAKE_C_COMPILER_RANLIB "@CMAKE_C_COMPILER_RANLIB@")
28 set(CMAKE_LINKER "@CMAKE_LINKER@")
29 set(CMAKE_LINKER_LINK "@CMAKE_LINKER_LINK@")
30 set(CMAKE_LINKER_LLD "@CMAKE_LINKER_LLD@")
31 set(CMAKE_C_COMPILER_LINKER "@CMAKE_C_COMPILER_LINKER@")
32 set(CMAKE_C_COMPILER_LINKER_ID "@CMAKE_C_COMPILER_LINKER_ID@")
33 set(CMAKE_C_COMPILER_LINKER_VERSION @CMAKE_C_COMPILER_LINKER_VERSION@)
34 set(CMAKE_C_COMPILER_LINKER_FRONTEND_VARIANT @CMAKE_C_COMPILER_LINKER_FRONTEND_VARIANT@)
35 set(CMAKE_MT "@CMAKE_MT@")
36 set(CMAKE_TAPI "@CMAKE_TAPI@")
37 set(CMAKE_COMPILER_IS_GNUCC @CMAKE_COMPILER_IS_GNUCC@)
38 set(CMAKE_C_COMPILER_LOADED 1)
39 set(CMAKE_C_COMPILER_WORKS @CMAKE_C_COMPILER_WORKS@)
40 set(CMAKE_C_ABI_COMPILED @CMAKE_C_ABI_COMPILED@)
42 set(CMAKE_C_COMPILER_ENV_VAR "CC")
44 set(CMAKE_C_COMPILER_ID_RUN 1)
45 set(CMAKE_C_SOURCE_FILE_EXTENSIONS c;m)
46 set(CMAKE_C_IGNORE_EXTENSIONS h;H;o;O;obj;OBJ;def;DEF;rc;RC)
47 set(CMAKE_C_LINKER_PREFERENCE 10)
48 set(CMAKE_C_LINKER_DEPFILE_SUPPORTED @CMAKE_C_LINKER_DEPFILE_SUPPORTED@)
50 # Save compiler ABI information.
51 set(CMAKE_C_SIZEOF_DATA_PTR "@CMAKE_C_SIZEOF_DATA_PTR@")
52 set(CMAKE_C_COMPILER_ABI "@CMAKE_C_COMPILER_ABI@")
53 set(CMAKE_C_BYTE_ORDER "@CMAKE_C_BYTE_ORDER@")
54 set(CMAKE_C_LIBRARY_ARCHITECTURE "@CMAKE_C_LIBRARY_ARCHITECTURE@")
56 if(CMAKE_C_SIZEOF_DATA_PTR)
57   set(CMAKE_SIZEOF_VOID_P "${CMAKE_C_SIZEOF_DATA_PTR}")
58 endif()
60 if(CMAKE_C_COMPILER_ABI)
61   set(CMAKE_INTERNAL_PLATFORM_ABI "${CMAKE_C_COMPILER_ABI}")
62 endif()
64 if(CMAKE_C_LIBRARY_ARCHITECTURE)
65   set(CMAKE_LIBRARY_ARCHITECTURE "@CMAKE_C_LIBRARY_ARCHITECTURE@")
66 endif()
68 set(CMAKE_C_CL_SHOWINCLUDES_PREFIX "@CMAKE_C_CL_SHOWINCLUDES_PREFIX@")
69 if(CMAKE_C_CL_SHOWINCLUDES_PREFIX)
70   set(CMAKE_CL_SHOWINCLUDES_PREFIX "${CMAKE_C_CL_SHOWINCLUDES_PREFIX}")
71 endif()
73 @CMAKE_C_COMPILER_CUSTOM_CODE@
74 @CMAKE_C_SYSROOT_FLAG_CODE@
75 @CMAKE_C_OSX_DEPLOYMENT_TARGET_FLAG_CODE@
77 set(CMAKE_C_IMPLICIT_INCLUDE_DIRECTORIES "@CMAKE_C_IMPLICIT_INCLUDE_DIRECTORIES@")
78 set(CMAKE_C_IMPLICIT_LINK_LIBRARIES "@CMAKE_C_IMPLICIT_LINK_LIBRARIES@")
79 set(CMAKE_C_IMPLICIT_LINK_DIRECTORIES "@CMAKE_C_IMPLICIT_LINK_DIRECTORIES@")
80 set(CMAKE_C_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES "@CMAKE_C_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES@")