mirror of
https://github.com/reactos/CMake.git
synced 2025-02-27 07:27:23 +00:00

Add properties and variables corresponding to CXX equivalents. Add features for c_function_prototypes (C90), c_restrict (C99), c_variadic_macros (C99) and c_static_assert (C11). This feature set can be extended later. Add a <PREFIX>_RESTRICT symbol define to WriteCompilerDetectionHeader to conditionally represent the c_restrict feature.
7 lines
91 B
CMake
7 lines
91 B
CMake
|
|
add_executable(main empty.c)
|
|
target_compile_features(main
|
|
PRIVATE
|
|
c_not_a_feature
|
|
)
|