mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
Merge pull request #20552 from dundargoc/build/cmake/compilation-database
build: generate compilation database for older cmake versions
This commit is contained in:
commit
603c6b6996
@ -451,6 +451,10 @@ set_target_properties(nvim
|
||||
PROPERTIES
|
||||
EXPORT_COMPILE_COMMANDS ON)
|
||||
|
||||
if(${CMAKE_VERSION} VERSION_LESS 3.20)
|
||||
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
||||
endif()
|
||||
|
||||
target_link_libraries(nvim ${NVIM_EXEC_LINK_LIBRARIES})
|
||||
install_helper(TARGETS nvim)
|
||||
if(MSVC)
|
||||
|
Loading…
Reference in New Issue
Block a user