mirror of
https://github.com/neovim/neovim.git
synced 2025-09-22 19:18:34 +00:00
build: fix dependencies in find modules (#22017)
Find modules should only link to libraries defined in the find module, and not the main project. This helps the find modules be more self-contained and easier to understand.
This commit is contained in:
@@ -17,4 +17,4 @@ find_package_handle_standard_args(libvterm
|
|||||||
|
|
||||||
add_library(libvterm INTERFACE)
|
add_library(libvterm INTERFACE)
|
||||||
target_include_directories(libvterm SYSTEM BEFORE INTERFACE INTERFACE ${LIBVTERM_INCLUDE_DIR})
|
target_include_directories(libvterm SYSTEM BEFORE INTERFACE INTERFACE ${LIBVTERM_INCLUDE_DIR})
|
||||||
target_link_libraries(main_lib INTERFACE ${LIBVTERM_LIBRARY})
|
target_link_libraries(libvterm INTERFACE ${LIBVTERM_LIBRARY})
|
||||||
|
@@ -23,5 +23,5 @@ main(void)
|
|||||||
list(REMOVE_ITEM CMAKE_REQUIRED_INCLUDES "${UNIBILIUM_INCLUDE_DIR}")
|
list(REMOVE_ITEM CMAKE_REQUIRED_INCLUDES "${UNIBILIUM_INCLUDE_DIR}")
|
||||||
list(REMOVE_ITEM CMAKE_REQUIRED_LIBRARIES "${UNIBILIUM_LIBRARY}")
|
list(REMOVE_ITEM CMAKE_REQUIRED_LIBRARIES "${UNIBILIUM_LIBRARY}")
|
||||||
if(UNIBI_HAS_VAR_FROM)
|
if(UNIBI_HAS_VAR_FROM)
|
||||||
target_compile_definitions(main_lib INTERFACE NVIM_UNIBI_HAS_VAR_FROM)
|
target_compile_definitions(unibilium INTERFACE NVIM_UNIBI_HAS_VAR_FROM)
|
||||||
endif()
|
endif()
|
||||||
|
Reference in New Issue
Block a user