aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt8
1 files changed, 7 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 8df9eb19f9..00a1d3f7af 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -310,12 +310,18 @@ install_helper(
# Go down the tree.
#
+if(EXISTS "${DEPS_PREFIX}/share/nvim-qt")
+ option(USE_BUNDLED_NVIMQT "Bundle neovim-qt" ON)
+else()
+ option(USE_BUNDLED_NVIMQT "Bundle neovim-qt" OFF)
+endif()
+
add_subdirectory(src/nvim)
add_subdirectory(cmake.config)
add_subdirectory(test/functional/fixtures) # compile test programs
add_subdirectory(runtime)
get_directory_property(GENERATED_HELP_TAGS DIRECTORY runtime DEFINITION GENERATED_HELP_TAGS)
-if(WIN32)
+if(WIN32 AND USE_BUNDLED_NVIMQT)
install_helper(
FILES ${DEPS_PREFIX}/share/nvim-qt/runtime/plugin/nvim_gui_shim.vim
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/nvim-qt/runtime/plugin)