mirror of
https://github.com/neovim/neovim.git
synced 2025-09-30 23:18:33 +00:00
build: avoid CMP0046 "dependency target does not exist" #8128
This commit is contained in:
@@ -34,11 +34,15 @@ Install from source
|
|||||||
make CMAKE_BUILD_TYPE=RelWithDebInfo
|
make CMAKE_BUILD_TYPE=RelWithDebInfo
|
||||||
sudo make install
|
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 CMAKE_EXTRA_FLAGS="-DCMAKE_INSTALL_PREFIX=/full/path/"
|
||||||
make install
|
make install
|
||||||
|
|
||||||
|
To list all targets:
|
||||||
|
|
||||||
|
cmake --build build --target help
|
||||||
|
|
||||||
See [the wiki](https://github.com/neovim/neovim/wiki/Building-Neovim) for details.
|
See [the wiki](https://github.com/neovim/neovim/wiki/Building-Neovim) for details.
|
||||||
|
|
||||||
Install from package
|
Install from package
|
||||||
|
@@ -455,6 +455,8 @@ if(WIN32)
|
|||||||
COMMAND ${CMAKE_COMMAND} -E copy "${DEPS_PREFIX}/bin/platforms/qwindows.dll" ${PROJECT_BINARY_DIR}/windows_runtime_deps/platforms/
|
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)
|
add_dependencies(nvim_runtime_deps external_blobs)
|
||||||
|
else()
|
||||||
|
add_custom_target(nvim_runtime_deps) # Stub target to avoid CMP0046.
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_library(
|
add_library(
|
||||||
|
Reference in New Issue
Block a user