mirror of
https://github.com/triqs/dft_tools
synced 2024-12-23 04:43:42 +01:00
[cmake] Prioritize -isystem over -I in extract_flags macro, Minor fix for empty list of inc_dirs
This commit is contained in:
parent
a26bfae4d1
commit
e4063bf4d0
@ -44,7 +44,9 @@ macro(extract_flags target)
|
||||
|
||||
get_property_recursive(inc_dirs TARGET ${target} PROPERTY INTERFACE_INCLUDE_DIRECTORIES)
|
||||
get_property_recursive(sys_inc_dirs TARGET ${target} PROPERTY INTERFACE_SYSTEM_INCLUDE_DIRECTORIES)
|
||||
list(REMOVE_ITEM inc_dirs ${sys_inc_dirs})
|
||||
if(inc_dirs)
|
||||
list(REMOVE_ITEM sys_inc_dirs ${inc_dirs})
|
||||
endif()
|
||||
foreach(dir ${inc_dirs})
|
||||
set(${target}_CXXFLAGS "${${target}_CXXFLAGS} -I${dir}")
|
||||
endforeach()
|
||||
|
Loading…
Reference in New Issue
Block a user