File tree Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Original file line number Diff line number Diff line change 11PROJECT (libgit2-redis C)
22CMAKE_MINIMUM_REQUIRED (VERSION 2.6)
33
4+ INCLUDE (../CMake/FindLibgit2.cmake)
45INCLUDE (../CMake/FindHiredis.cmake)
56
67# Build options
78OPTION (BUILD_SHARED_LIBS "Build Shared Library (OFF for Static)" ON )
89OPTION (BUILD_TESTS "Build Tests" ON )
9- SET (PC_LIBGIT2_LIBRARY_DIRS "" CACHE STRING "libgit2 path" )
10- SET (PC_LIBGIT2_INCLUDE_DIRS "" CACHE STRING "libgit2 include directories" )
11-
12- # Allow overriding to local libgit2. I'm pretty sure I'm doing this wrong.
13- IF (PC_LIBGIT2_INCLUDE_DIRS STREQUAL "" )
14- INCLUDE (../CMake/FindLibgit2.cmake)
15- ELSE ()
16- SET (LIBGIT2_LIBRARIES ${PC_LIBGIT2_LIBRARY_DIRS} )
17- SET (LIBGIT2_INCLUDE_DIRS ${PC_LIBGIT2_INCLUDE_DIRS} )
18- ENDIF ()
1910
2011# Build Release by default
2112IF (NOT CMAKE_BUILD_TYPE )
2213 SET (CMAKE_BUILD_TYPE "Release" CACHE STRING "Choose the type of build, options are: Debug Release RelWithDebInfo MinSizeRel." FORCE)
2314ENDIF ()
2415
2516# Compile and link libgit2
26- INCLUDE_DIRECTORIES (${LIBGIT2_INCLUDE_DIRS } ${LIBHIREDIS_INCLUDE_DIRS } )
17+ INCLUDE_DIRECTORIES (${LIBGIT2_INCLUDE_DIR } ${LIBHIREDIS_INCLUDE_DIR } )
2718
2819IF (BUILD_SHARED_LIBS )
2920 ADD_LIBRARY (git2-redis SHARED hiredis.c)
You can’t perform that action at this time.
0 commit comments