mirror of
https://github.com/libgit2/libgit2.git
synced 2026-06-22 06:26:26 +00:00
cmake: fix linker error when using ninja build generator
This commit is contained in:
@@ -48,7 +48,7 @@ add_executable(libgit2_benchmarks ${CLAR_SRC}
|
||||
${LIBGIT2_DEPENDENCY_OBJECTS})
|
||||
|
||||
target_link_libraries(libgit2_benchmarks libgit2package ${LIBGIT2_SYSTEM_LIBS})
|
||||
if(NOT MSVC_IDE)
|
||||
if(NOT MSVC)
|
||||
target_link_libraries(libgit2_benchmarks m)
|
||||
endif()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user