Sha256: ffaeb4de3adc9dc9910e19ea600ad3509853862662e0223c30c9b4db2a4281f7
Contents?: true
Size: 1.47 KB
Versions: 3
Compression:
Stored size: 1.47 KB
Contents
set(CLI_INCLUDES "${libgit2_BINARY_DIR}/src" "${libgit2_SOURCE_DIR}/src/util" "${libgit2_SOURCE_DIR}/src/cli" "${libgit2_SOURCE_DIR}/include") if(WIN32 AND NOT CYGWIN) file(GLOB CLI_SRC_OS win32/*.c) list(SORT CLI_SRC_OS) else() file(GLOB CLI_SRC_OS unix/*.c) list(SORT CLI_SRC_OS) endif() file(GLOB CLI_SRC_C *.c *.h) list(SORT CLI_SRC_C) # # The CLI currently needs to be statically linked against libgit2 because # the utility library uses libgit2's thread-local error buffers. TODO: # remove this dependency and allow us to dynamically link against libgit2. # if(BUILD_CLI STREQUAL "dynamic") set(CLI_LIBGIT2_LIBRARY libgit2package) else() set(CLI_LIBGIT2_OBJECTS $<TARGET_OBJECTS:libgit2>) endif() # # Compile and link the CLI # add_executable(git2_cli ${CLI_SRC_C} ${CLI_SRC_OS} ${CLI_OBJECTS} $<TARGET_OBJECTS:util> ${CLI_LIBGIT2_OBJECTS} ${LIBGIT2_DEPENDENCY_OBJECTS}) target_link_libraries(git2_cli ${CLI_LIBGIT2_LIBRARY} ${LIBGIT2_SYSTEM_LIBS}) set_target_properties(git2_cli PROPERTIES C_STANDARD 90) set_target_properties(git2_cli PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${libgit2_BINARY_DIR}) ide_split_sources(git2_cli) target_include_directories(git2_cli PRIVATE ${CLI_INCLUDES}) if(MSVC_IDE) # Precompiled headers set_target_properties(git2_cli PROPERTIES COMPILE_FLAGS "/Yuprecompiled.h /FIprecompiled.h") set_source_files_properties(win32/precompiled.c COMPILE_FLAGS "/Ycprecompiled.h") endif() install(TARGETS git2_cli RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rugged-1.5.1 | vendor/libgit2/src/cli/CMakeLists.txt |
rugged-1.5.0.1 | vendor/libgit2/src/cli/CMakeLists.txt |
rugged-1.5.0 | vendor/libgit2/src/cli/CMakeLists.txt |