File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
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)
54INCLUDE (../CMake/FindHiredis.cmake)
65
76# Build options
87OPTION (BUILD_SHARED_LIBS "Build Shared Library (OFF for Static)" ON )
98OPTION (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 ()
1019
1120# Build Release by default
1221IF (NOT CMAKE_BUILD_TYPE )
You can’t perform that action at this time.
0 commit comments