Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMake unable to find jsoncpp.cpp #7

Open
I-Am-Xil opened this issue Jul 10, 2024 · 1 comment
Open

CMake unable to find jsoncpp.cpp #7

I-Am-Xil opened this issue Jul 10, 2024 · 1 comment

Comments

@I-Am-Xil
Copy link

Every time i open NeoVim i get the message "Done. Restart NeoVim.". In order to find out why it didn't work i decided to build from ~/.local/share/nvim/lazy/nvim-textmate and got the next error message when running make

...
config.status: executing libtool commands                                                                                                                              
config.status: executing default commands                                                                                                                              
mkdir -p build                                                                                                                                                         
cd build && cmake ../cmake && make                                                                                                                                     
-- Configuring done (0.0s)                                                         
CMake Error at CMakeLists.txt:82 (add_library):           
  Cannot find source file:

    ../libs/jsoncpp/dist/jsoncpp.cpp

  Tried extensions .c .C .c++ .cc .cpp .cxx .cu .mpp .m .M .mm .ixx .cppm
  .ccm .cxxm .c++m .h .hh .h++ .hm .hpp .hxx .in .txx .f .F .for .f77 .f90
  .f95 .f03 .hip .
                                                                                   
CMake Error at CMakeLists.txt:82 (add_library):                                    
  No SOURCES given to target: 

CMake Generate step failed.  Build files cannot be regenerated correctly.          
make: *** [Makefile:10: build] Error 1

Printing the output from vim.fn.system({ "make", "build", "-C", target_path }) in ~/.local/share/nvim/lazy/nvim-textmate/lua/nvim-textmate/init.lua gives the same error message. The error comes from ../cmake/CMakeList.txt in the

add_library( textmate
    SHARED
...

section.

@Metekillot
Copy link

I'm also having this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants