blob: f3c7134a818d11d14421d7f12a481c23bf893d34 [file] [edit]
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}")