Is it possible with cmake 2.6 (or higher, if not possible in this version) to check whether an include directory is marked as SYSTEM
(e.g. compile with the isystem
gcc flag, see 2.8 System Headers)?
For example, I get the include directories of the current target with:
GET_PROPERTY(_target_include_dirs DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY INCLUDE_DIRECTORIES)
How do I know which ones are marked as isystem
?
Thanks