File tree Expand file tree Collapse file tree 6 files changed +14
-1
lines changed
Expand file tree Collapse file tree 6 files changed +14
-1
lines changed Original file line number Diff line number Diff line change 1- # CMake build script for the libgit2 project
1+ # libgit2: the cross-platform, linkable library implementation of git.
22# See `README.md` for build instructions.
3+ #
4+ # This top-level CMakeLists.txt sets up configuration options and
5+ # determines which subprojects to build.
36
47cmake_minimum_required (VERSION 3.5.1)
58
Original file line number Diff line number Diff line change 1+ # examples: code usage examples of libgit2
2+
13file (GLOB SRC_EXAMPLES *.c *.h)
24
35add_executable (lg2 ${SRC_EXAMPLES} )
Original file line number Diff line number Diff line change 1+ # fuzzers: libFuzzer and standalone fuzzing utilities
2+
13if (BUILD_FUZZERS AND NOT USE_STANDALONE_FUZZERS)
24 set (CMAKE_REQUIRED_FLAGS "-fsanitize=fuzzer-no-link" )
35 add_c_flag(-fsanitize=fuzzer)
Original file line number Diff line number Diff line change 1+ # libgit2: the shared library: this CMakeLists.txt compiles the core
2+ # git library functionality.
3+
14add_library (git2internal OBJECT)
25set_target_properties (git2internal PROPERTIES C_STANDARD 90)
36set_target_properties (git2internal PROPERTIES C_EXTENSIONS OFF )
Original file line number Diff line number Diff line change @@ -54,6 +54,7 @@ list(SORT UTIL_SRC_HASH)
5454#
5555
5656target_sources (util PRIVATE ${UTIL_SRC} ${UTIL_SRC_OS} ${UTIL_SRC_HASH} )
57+ ide_split_sources(util)
5758
5859target_include_directories (util PRIVATE ${UTIL_INCLUDES} ${LIBGIT2_DEPENDENCY_INCLUDES} PUBLIC ${libgit2_SOURCE_DIR} /include )
5960target_include_directories (util SYSTEM PRIVATE ${LIBGIT2_SYSTEM_INCLUDES} )
Original file line number Diff line number Diff line change 1+ # tests: the unit and integration tests for libgit2
2+
13set (Python_ADDITIONAL_VERSIONS 3 2.7)
24find_package (PythonInterp)
35
You can’t perform that action at this time.
0 commit comments