telescope-fzf-native.nvim icon indicating copy to clipboard operation
telescope-fzf-native.nvim copied to clipboard

Update CMakeLists.txt - fix issue missing libfzf.dll, expected in build, found in build/Release

Open lyoneel opened this issue 9 months ago • 1 comments

Using the following configuration in windows using lazy.nvim and cmake: { 'nvim-telescope/telescope-fzf-native.nvim', build = 'cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release && cmake --build build --config Release' }

Neovim complains about a missing dll file in the build directory. I found that the dll file is compiled and is inside build/Release folder.

This fix specify explicitly the build output directory to be ./build directory.

This was tested on win10

NOTE: I didn't realize there were other PRs addressing the issue, I just fix by myself ASAP and copy my solution here.

lyoneel avatar Feb 10 '25 09:02 lyoneel

Hi! I'm the original author of the CMakeLists.txt + presets file.

If you use --target install when building the project it'll place it into the correct directory. This is why there is

install(TARGETS ${PROJECT_NAME} DESTINATION ${CMAKE_BINARY_DIR})

At the very bottom of the CMakeLists.txt file. I'm unsure why the --target install was removed in the README, but it is necessary for the build step to work correctly in one go.

bruxisma avatar Mar 08 '25 08:03 bruxisma

included in #158 (thanks!)

clason avatar Nov 07 '25 13:11 clason