mirror of
https://github.com/libgit2/libgit2.git
synced 2026-01-25 02:56:17 +00:00
Ensure that we always use lowercase function names, and that we do not have spaces preceding open parentheses, for consistency.
16 lines
425 B
CMake
16 lines
425 B
CMake
include_directories(${LIBGIT2_INCLUDES})
|
|
include_directories(SYSTEM ${LIBGIT2_SYSTEM_INCLUDES})
|
|
|
|
file(GLOB LG2_SOURCES *.c *.h)
|
|
add_executable(lg2 ${LG2_SOURCES})
|
|
set_target_properties(lg2 PROPERTIES C_STANDARD 90)
|
|
|
|
# Ensure that we do not use deprecated functions internally
|
|
add_definitions(-DGIT_DEPRECATE_HARD)
|
|
|
|
if(WIN32 OR ANDROID)
|
|
target_link_libraries(lg2 git2)
|
|
else()
|
|
target_link_libraries(lg2 git2 pthread)
|
|
endif()
|