aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJames McCoy <jamessan@jamessan.com>2022-10-09 06:45:31 -0400
committerGitHub <noreply@github.com>2022-10-09 06:45:31 -0400
commit603c6b6996eb7e04d50fe5544754669a06af73e0 (patch)
treea3fb022acb9966b877281d3dc776c8f2611ee64d /src
parent8c2226fc30931690186390d86f963cd43e6947ef (diff)
parentc422046e43359f8d02a0d48bc57f62b9d2542ccf (diff)
downloadrneovim-603c6b6996eb7e04d50fe5544754669a06af73e0.tar.gz
rneovim-603c6b6996eb7e04d50fe5544754669a06af73e0.tar.bz2
rneovim-603c6b6996eb7e04d50fe5544754669a06af73e0.zip
Merge pull request #20552 from dundargoc/build/cmake/compilation-database
build: generate compilation database for older cmake versions
Diffstat (limited to 'src')
-rwxr-xr-xsrc/nvim/CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nvim/CMakeLists.txt b/src/nvim/CMakeLists.txt
index 4c8defad45..2960e6d9d2 100755
--- 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)