Merge pull request #20552 from dundargoc/build/cmake/compilation-database

build: generate compilation database for older cmake versions
This commit is contained in:
James McCoy 2022-10-09 06:45:31 -04:00 committed by GitHub
commit 603c6b6996
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)