We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f8b7dae commit 34bcf95Copy full SHA for 34bcf95
redis/CMakeLists.txt
@@ -25,11 +25,10 @@ ENDIF ()
25
# Compile and link libgit2
26
INCLUDE_DIRECTORIES(${LIBGIT2_INCLUDE_DIRS} ${LIBHIREDIS_INCLUDE_DIRS})
27
28
-ADD_LIBRARY(core OBJECT hiredis.c)
29
IF (BUILD_SHARED_LIBS)
30
- ADD_LIBRARY(git2-redis SHARED $<TARGET_OBJECTS:core>)
+ ADD_LIBRARY(git2-redis SHARED hiredis.c)
31
ELSE ()
32
- ADD_LIBRARY(git2-redis STATIC $<TARGET_OBJECTS:core>)
+ ADD_LIBRARY(git2-redis STATIC hiredis.c)
33
ENDIF ()
34
35
TARGET_LINK_LIBRARIES(git2-redis ${LIBGIT2_LIBRARIES} ${LIBHIREDIS_LIBRARIES})
0 commit comments