mirror of
https://github.com/neovim/neovim.git
synced 2024-09-17 20:58:20 -04:00
build: include all dependency directories when generating headers
This will add all interface include directories property from all targets to main_lib. This may not be universally wanted, in which case we can revisit/rework it. Closes https://github.com/neovim/neovim/issues/23237.
This commit is contained in:
parent
936b78e811
commit
ef92b5a994
@ -407,11 +407,14 @@ foreach(gen_cdef DO_NOT_DEFINE_EMPTY_ATTRIBUTES ${prop})
|
|||||||
endif()
|
endif()
|
||||||
endforeach()
|
endforeach()
|
||||||
|
|
||||||
get_target_property(prop main_lib INTERFACE_INCLUDE_DIRECTORIES)
|
get_directory_property(targets BUILDSYSTEM_TARGETS)
|
||||||
foreach(gen_include ${prop})
|
foreach(target ${targets})
|
||||||
list(APPEND gen_cflags "-I${gen_include}")
|
get_target_property(prop ${target} INTERFACE_INCLUDE_DIRECTORIES)
|
||||||
|
foreach(gen_include ${prop})
|
||||||
|
list(APPEND gen_cflags "-I${gen_include}")
|
||||||
|
endforeach()
|
||||||
endforeach()
|
endforeach()
|
||||||
list(APPEND gen_cflags "-I${DEPS_PREFIX}/include")
|
|
||||||
if(APPLE AND CMAKE_OSX_SYSROOT)
|
if(APPLE AND CMAKE_OSX_SYSROOT)
|
||||||
list(APPEND gen_cflags "-isysroot")
|
list(APPEND gen_cflags "-isysroot")
|
||||||
list(APPEND gen_cflags "${CMAKE_OSX_SYSROOT}")
|
list(APPEND gen_cflags "${CMAKE_OSX_SYSROOT}")
|
||||||
|
Loading…
Reference in New Issue
Block a user