mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-24 23:49:18 -06:00
`AUTOGEN_USE_SYSTEM_INCLUDE` was added. `AUTOGEN_USE_SYSTEM_INCLUDE` is a boolean property that can be set on a target to indicate that the autogen target include directory should be added as a system include directory or normal include directory to the target.
14 lines
276 B
CMake
14 lines
276 B
CMake
enable_language(CXX)
|
|
|
|
set(info "")
|
|
foreach(var
|
|
CMAKE_INCLUDE_FLAG_CXX
|
|
CMAKE_INCLUDE_SYSTEM_FLAG_CXX
|
|
)
|
|
if(DEFINED ${var})
|
|
string(APPEND info "set(${var} \"${${var}}\")\n")
|
|
endif()
|
|
endforeach()
|
|
|
|
file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/info.cmake" "${info}")
|