| enable_language(C) | |
| # Reloading the platform must preserve the compiler's system include flag. | |
| include(Platform/Darwin) | |
| set(system_headers "${CMAKE_CURRENT_BINARY_DIR}/SystemHeaders") | |
| file(MAKE_DIRECTORY "${system_headers}") | |
| add_executable(main main.c) | |
| target_include_directories(main SYSTEM PRIVATE "${system_headers}") | |
| set_property(SOURCE main.c PROPERTY INCLUDE_DIRECTORIES "${system_headers}") |