mirror of
https://github.com/triqs/dft_tools
synced 2025-01-08 20:33:16 +01:00
[cmake] Protect against flags -I/usr/include in extract_flags.cmake
This commit is contained in:
parent
15e4c6d635
commit
c04128fa0d
@ -76,10 +76,14 @@ macro(extract_flags)
|
||||
list(REMOVE_ITEM sys_inc_dirs ${inc_dirs})
|
||||
endif()
|
||||
foreach(dir ${inc_dirs})
|
||||
set(${target}_CXXFLAGS "${${target}_CXXFLAGS} -I${dir}")
|
||||
if(NOT dir STREQUAL "/usr/include")
|
||||
set(${target}_CXXFLAGS "${${target}_CXXFLAGS} -I${dir}")
|
||||
endif()
|
||||
endforeach()
|
||||
foreach(dir ${sys_inc_dirs})
|
||||
set(${target}_CXXFLAGS "${${target}_CXXFLAGS} -isystem${dir}")
|
||||
if(NOT dir STREQUAL "/usr/include")
|
||||
set(${target}_CXXFLAGS "${${target}_CXXFLAGS} -isystem${dir}")
|
||||
endif()
|
||||
endforeach()
|
||||
|
||||
get_property_recursive(libs TARGET ${target} PROPERTY INTERFACE_LINK_LIBRARIES)
|
||||
|
Loading…
Reference in New Issue
Block a user