Skip to content

Commit

Permalink
The .def file is only needed on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-grunder committed Feb 8, 2020
1 parent 3e6149c commit d1d2bd7
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,24 @@ PROJECT(hiredis VERSION "${VERSION}")

SET(ENABLE_EXAMPLES OFF CACHE BOOL "Enable building hiredis examples")

ADD_LIBRARY(hiredis SHARED
SET(hiredis_sources
async.c
dict.c
hiredis.c
net.c
read.c
sds.c
sockcompat.c
alloc.c
hiredis.def)
alloc.c)

IF(WIN32)
SET(hiredis_sources
${hiredis_sources}
hiredis.def
)
ENDIF()

ADD_LIBRARY(hiredis SHARED ${hiredis_sources})

SET_TARGET_PROPERTIES(hiredis
PROPERTIES
Expand Down

0 comments on commit d1d2bd7

Please sign in to comment.