mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 03:18:16 +00: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.
(cherry picked from commit 096e91b988
)
This commit is contained in:

committed by
github-actions[bot]
![github-actions[bot]](/assets/img/avatar_default.png)
parent
deec5e6e2a
commit
f5bf29a0ad
@@ -387,11 +387,14 @@ foreach(gen_cdef DO_NOT_DEFINE_EMPTY_ATTRIBUTES ${prop})
|
||||
endif()
|
||||
endforeach()
|
||||
|
||||
get_target_property(prop main_lib INTERFACE_INCLUDE_DIRECTORIES)
|
||||
get_directory_property(targets BUILDSYSTEM_TARGETS)
|
||||
foreach(target ${targets})
|
||||
get_target_property(prop ${target} INTERFACE_INCLUDE_DIRECTORIES)
|
||||
foreach(gen_include ${prop})
|
||||
list(APPEND gen_cflags "-I${gen_include}")
|
||||
endforeach()
|
||||
list(APPEND gen_cflags "-I${DEPS_PREFIX}/include")
|
||||
endforeach()
|
||||
|
||||
if(APPLE AND CMAKE_OSX_SYSROOT)
|
||||
list(APPEND gen_cflags "-isysroot")
|
||||
list(APPEND gen_cflags "${CMAKE_OSX_SYSROOT}")
|
||||
|
Reference in New Issue
Block a user