Open D3vil0p3r opened 8 months ago
we could bump the minimum_required cmake version to idk 3.9
we could bump the minimum_required cmake version to idk 3.9
We can try to see if it fixes this issue.
The real issue is in the build command advertised by the plugin. The final install step fails at
file(INSTALL DESTINATION "/home/x/.local/share/nvim/lazy/telescope-fzf-native.nvim/build" TYPE SHARED_LIBRARY FILES "/home/x/.local/share/nvim/lazy/telescope-fzf-native.nvim/build/libfzf.so")
At first look this install step is entirely redundant. On second look its dangerous because it is undefined behavior which new versions of cmake seem to have affected. So PSA for people coming here:
- cmake --build build --config Release && \
- cmake --install build --prefix build",
+ cmake --build build --config Release",
Alternatively use build = 'make'
I get the same issue, also on NixOS. I tried changing the build command in my lua config to both 'make' and 'cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release && cmake --build build --config Release' and it did not seem to change anything; I still get the issue.
I did, however, find a workaround: just go to your shell and manually run make:
cd [nvim data dir]/lazy/telescope-fzf-native.nvim
make
I ran into the same issue on Nix using LazyVim. Seems they check whether cmake
is installed or fall back to make
if it's not. Perhaps you could add a similar check and just build with make
until this gets resolved.
I'm using NixOS with Neovim. Installing telescope-fzf-native.nvim by the following
telescope.lua
file:and when I place
telescope.lua
among the plugins of Neovim, when I runnvim
for the first time, at compilation time of this plugin I getIn
plugins.lua
it is dealt with:Why I get this deprecation error despite I'm using CMake 3.27? The problem is in
CMakeLists.txt
at:?