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:
dundargoc
2023-01-27 14:16:31 +01:00
committed by GitHub
parent aec4b476c5
commit 38365fa2ef
2 changed files with 2 additions and 2 deletions

View File

@@ -23,5 +23,5 @@ main(void)
list(REMOVE_ITEM CMAKE_REQUIRED_INCLUDES "${UNIBILIUM_INCLUDE_DIR}")
list(REMOVE_ITEM CMAKE_REQUIRED_LIBRARIES "${UNIBILIUM_LIBRARY}")
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()