commit 603c6b6996eb7e04d50fe5544754669a06af73e0
parent 8c2226fc30931690186390d86f963cd43e6947ef
Author: James McCoy <jamessan@jamessan.com>
Date: Sun, 9 Oct 2022 06:45:31 -0400
Merge pull request #20552 from dundargoc/build/cmake/compilation-database
build: generate compilation database for older cmake versions
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/nvim/CMakeLists.txt b/src/nvim/CMakeLists.txt
@@ -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)