Failing to build libgit2

50 Views Asked by At

I am trying to build the libgit2 library on Windows 11 x64, but having some issues.

I run

cmake .. -DBUILD_TESTS=OFF -DBUILD_SHARED_LIBS=ON 

But got the errors:

CMake Error at deps/http-parser/CMakeLists.txt:4 (add_library):
No SOURCES given to target: http-parser    
CMake Error at deps/xdiff/CMakeLists.txt:5 (add_library):
No SOURCES given to target: xdiff
CMake Error at deps/zlib/CMakeLists.txt:6 (add_library):
No SOURCES given to target: zlib
CMake Error at src/libgit2/CMakeLists.txt:4 (add_library):
No SOURCES given to target: libgit2
CMake Error at src/util/CMakeLists.txt:3 (add_library):
  No SOURCES given to target: util

Am I doing something wrong?

0

There are 0 best solutions below