aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2018-03-18 23:24:37 +0100
committerJustin M. Keyes <justinkz@gmail.com>2018-03-18 23:41:48 +0100
commit1fb44676cd583fd9b5d8e4aff4db8d5ad954c2a5 (patch)
tree6610151e521ec3bac6ae8dad2f8437e181ede964
parentc49dac7cd36972571f1b8b60367e336842e13bec (diff)
downloadrneovim-1fb44676cd583fd9b5d8e4aff4db8d5ad954c2a5.tar.gz
rneovim-1fb44676cd583fd9b5d8e4aff4db8d5ad954c2a5.tar.bz2
rneovim-1fb44676cd583fd9b5d8e4aff4db8d5ad954c2a5.zip
build: avoid CMP0046 "dependency target does not exist" #8128
-rw-r--r--README.md6
-rw-r--r--src/nvim/CMakeLists.txt2
2 files changed, 7 insertions, 1 deletions
diff --git a/README.md b/README.md
index 2e1fc90c0c..20026f4578 100644
--- a/README.md
+++ b/README.md
@@ -34,11 +34,15 @@ Install from source
make CMAKE_BUILD_TYPE=RelWithDebInfo
sudo make install
-To install to a non-default location, specify `CMAKE_INSTALL_PREFIX`:
+To install to a non-default location, set `CMAKE_INSTALL_PREFIX`:
make CMAKE_EXTRA_FLAGS="-DCMAKE_INSTALL_PREFIX=/full/path/"
make install
+To list all targets:
+
+ cmake --build build --target help
+
See [the wiki](https://github.com/neovim/neovim/wiki/Building-Neovim) for details.
Install from package
diff --git a/src/nvim/CMakeLists.txt b/src/nvim/CMakeLists.txt
index 0e174c3c61..5fb8b7fe0f 100644
--- a/src/nvim/CMakeLists.txt
+++ b/src/nvim/CMakeLists.txt
@@ -455,6 +455,8 @@ if(WIN32)
COMMAND ${CMAKE_COMMAND} -E copy "${DEPS_PREFIX}/bin/platforms/qwindows.dll" ${PROJECT_BINARY_DIR}/windows_runtime_deps/platforms/
)
add_dependencies(nvim_runtime_deps external_blobs)
+else()
+ add_custom_target(nvim_runtime_deps) # Stub target to avoid CMP0046.
endif()
add_library(